pub struct InputProps {
pub class: Option<Cow<'static, str>>,
pub type: Option<Cow<'static, str>>,
pub placeholder: Option<Cow<'static, str>>,
pub value: Option<Cow<'static, str>>,
pub disabled: bool,
pub attrs: AttrMap,
}Expand description
Input — maps to CSS class .input. No variants.
Fields§
§class: Option<Cow<'static, str>>§type: Option<Cow<'static, str>>HTML type attribute (text, email, password, etc.)
placeholder: Option<Cow<'static, str>>§value: Option<Cow<'static, str>>§disabled: bool§attrs: AttrMapImplementations§
Source§impl InputProps
impl InputProps
pub const __BASECOAT_EXTEND_FIELD: Option<&'static str>
Sourcepub fn builder() -> InputPropsBuilder
pub fn builder() -> InputPropsBuilder
Create a builder for this prop struct.
Trait Implementations§
Source§impl Clone for InputProps
impl Clone for InputProps
Source§fn clone(&self) -> InputProps
fn clone(&self) -> InputProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputProps
impl Debug for InputProps
Source§impl Default for InputProps
impl Default for InputProps
Source§fn default() -> InputProps
fn default() -> InputProps
Returns the “default value” for a type. Read more
Source§impl From<InputPropsBuilder> for InputProps
impl From<InputPropsBuilder> for InputProps
Source§fn from(b: InputPropsBuilder) -> Self
fn from(b: InputPropsBuilder) -> Self
Converts to this type from the input type.
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