Struct freya::components::InputProps
source · pub struct InputProps<'a> {
pub value: String,
pub onchange: EventHandler<'a, String>,
/* private fields */
}Expand description
Input component properties.
Fields§
§value: StringCurrent value of the Input
onchange: EventHandler<'a, String>Handler for the onchange event.
Implementations§
source§impl<'a> InputProps<'a>
impl<'a> InputProps<'a>
sourcepub fn builder() -> InputPropsBuilder<'a, ((), (), (), (), ())>
pub fn builder() -> InputPropsBuilder<'a, ((), (), (), (), ())>
Create a builder for building InputProps.
On the builder, call .value(...), .onchange(...), .width(...)(optional), .height(...)(optional), .max_lines(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of InputProps.
Trait Implementations§
source§impl<'a> Properties for InputProps<'a>
impl<'a> Properties for InputProps<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InputProps<'a>
impl<'a> !Send for InputProps<'a>
impl<'a> !Sync for InputProps<'a>
impl<'a> Unpin for InputProps<'a>
impl<'a> !UnwindSafe for InputProps<'a>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer