pub struct InputProps {
pub name: String,
pub value: Option<String>,
pub field_type: Option<FieldType>,
pub placeholder: Option<String>,
pub required: Option<bool>,
pub disabled: Option<bool>,
pub _error: Option<String>,
pub _has_error: Option<bool>,
pub on_change: Option<Callback<String>>,
pub class: Option<String>,
}Expand description
Fieldsยง
ยงname: Stringยงvalue: Option<String>ยงfield_type: Option<FieldType>ยงplaceholder: Option<String>ยงrequired: Option<bool>ยงdisabled: Option<bool>ยง_error: Option<String>ยง_has_error: Option<bool>ยงon_change: Option<Callback<String>>ยงclass: Option<String>Implementationsยง
Sourceยงimpl InputProps
impl InputProps
Sourcepub fn builder() -> InputPropsBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> InputPropsBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building InputProps.
On the builder, call .name(...), .value(...)(optional), .field_type(...)(optional), .placeholder(...)(optional), .required(...)(optional), .disabled(...)(optional), ._error(...)(optional), ._has_error(...)(optional), .on_change(...)(optional), .class(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of InputProps.
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for InputProps
impl RefUnwindSafe for InputProps
impl Send for InputProps
impl Sync for InputProps
impl Unpin for InputProps
impl UnsafeUnpin for InputProps
impl UnwindSafe for InputProps
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
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงimpl<T> SerializableKey for T
impl<T> SerializableKey for T
Sourceยงimpl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Sourceยงfn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Sourceยงfn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.