pub struct Button {
pub label: String,
pub variant: ButtonVariant,
pub size: ButtonSize,
pub disabled: bool,
}Fields§
§label: String§variant: ButtonVariant§size: ButtonSize§disabled: boolImplementations§
Source§impl Button
impl Button
pub fn new(label: String) -> Button
pub fn variant(self, variant: ButtonVariant) -> Button
pub fn size(self, size: ButtonSize) -> Button
pub fn disabled(self, disabled: bool) -> Button
pub fn get_variant_class(&self) -> String
pub fn get_size_class(&self) -> String
pub fn get_style(&self) -> String
Trait Implementations§
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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