pub enum ButtonStyle {
Default,
Primary,
Danger,
}Expand description
The enumerated value that represents the button style.
Variants§
Default
No value in the field.
Primary
primary gives buttons a green outline and text, ideal for affirmation or confirmation actions.
Danger
danger gives buttons a red outline and text, and should be used when the action is destructive.
Implementations§
Source§impl ButtonStyle
impl ButtonStyle
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns true if the ButtonStyle is ButtonStyle::Default.
Trait Implementations§
Source§impl Clone for ButtonStyle
impl Clone for ButtonStyle
Source§fn clone(&self) -> ButtonStyle
fn clone(&self) -> ButtonStyle
Returns a duplicate of the value. Read more
1.0.0 · 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 ButtonStyle
impl Debug for ButtonStyle
Auto Trait Implementations§
impl Freeze for ButtonStyle
impl RefUnwindSafe for ButtonStyle
impl Send for ButtonStyle
impl Sync for ButtonStyle
impl Unpin for ButtonStyle
impl UnwindSafe for ButtonStyle
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