pub struct ButtonProps {
pub variant: ButtonVariant,
pub size: ButtonSize,
pub class: Option<Cow<'static, str>>,
pub attrs: AttrMap,
pub children: Children,
}Fields§
§variant: ButtonVariant§size: ButtonSize§class: Option<Cow<'static, str>>§attrs: AttrMap§children: ChildrenImplementations§
Source§impl ButtonProps
impl ButtonProps
pub const __BASECOAT_EXTEND_FIELD: Option<&'static str>
Sourcepub fn builder() -> ButtonPropsBuilder
pub fn builder() -> ButtonPropsBuilder
Create a builder for this prop struct.
Trait Implementations§
Source§impl Clone for ButtonProps
impl Clone for ButtonProps
Source§fn clone(&self) -> ButtonProps
fn clone(&self) -> ButtonProps
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 ButtonProps
impl Debug for ButtonProps
Source§impl Default for ButtonProps
impl Default for ButtonProps
Source§fn default() -> ButtonProps
fn default() -> ButtonProps
Returns the “default value” for a type. Read more
Source§impl From<ButtonPropsBuilder> for ButtonProps
impl From<ButtonPropsBuilder> for ButtonProps
Source§fn from(b: ButtonPropsBuilder) -> Self
fn from(b: ButtonPropsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ButtonProps
impl RefUnwindSafe for ButtonProps
impl Send for ButtonProps
impl Sync for ButtonProps
impl Unpin for ButtonProps
impl UnsafeUnpin for ButtonProps
impl UnwindSafe for ButtonProps
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