Struct freya::prelude::InputProps  
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§
§impl<'a> InputProps<'a>
 
impl<'a> InputProps<'a>
pub fn builder() -> InputPropsBuilder<'a, ((), (), (), (), ())>
pub fn builder() -> InputPropsBuilder<'a, ((), (), (), (), ())>
Create a builder for building InputProps.
On the builder, call .value(...), .onchange(...), .hidden(...)(optional), .width(...)(optional), .margin(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of InputProps.
Trait Implementations§
§impl<'a> Properties for InputProps<'a>
 
impl<'a> Properties for InputProps<'a>
§type Builder = InputPropsBuilder<'a, ((), (), (), (), ())>
 
type Builder = InputPropsBuilder<'a, ((), (), (), (), ())>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
§fn builder() -> <InputProps<'a> as Properties>::Builder
 
fn builder() -> <InputProps<'a> as Properties>::Builder
Create a builder for this component.
§unsafe fn memoize(&self, other: &InputProps<'a>) -> bool
 
unsafe fn memoize(&self, other: &InputProps<'a>) -> bool
Memoization can only happen if the props are valid for the ’static lifetime Read more
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§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more