pub struct LabelProps {
pub class: Option<Cow<'static, str>>,
pub for: Option<Cow<'static, str>>,
pub attrs: AttrMap,
pub children: Children,
}Expand description
Label — maps to CSS class .label. No variants.
Fields§
§class: Option<Cow<'static, str>>§for: Option<Cow<'static, str>>for attribute linking to an input id.
attrs: AttrMap§children: ChildrenImplementations§
Source§impl LabelProps
impl LabelProps
pub const __BASECOAT_EXTEND_FIELD: Option<&'static str>
Sourcepub fn builder() -> LabelPropsBuilder
pub fn builder() -> LabelPropsBuilder
Create a builder for this prop struct.
Trait Implementations§
Source§impl Clone for LabelProps
impl Clone for LabelProps
Source§fn clone(&self) -> LabelProps
fn clone(&self) -> LabelProps
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 LabelProps
impl Debug for LabelProps
Source§impl Default for LabelProps
impl Default for LabelProps
Source§fn default() -> LabelProps
fn default() -> LabelProps
Returns the “default value” for a type. Read more
Source§impl From<LabelPropsBuilder> for LabelProps
impl From<LabelPropsBuilder> for LabelProps
Source§fn from(b: LabelPropsBuilder) -> Self
fn from(b: LabelPropsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LabelProps
impl RefUnwindSafe for LabelProps
impl Send for LabelProps
impl Sync for LabelProps
impl Unpin for LabelProps
impl UnsafeUnpin for LabelProps
impl UnwindSafe for LabelProps
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