pub enum ButtonStyle {
Primary = 1,
Secondary = 2,
Success = 3,
Danger = 4,
Link = 5,
}Variants§
Primary = 1
Blurple (Primary).
Secondary = 2
Grey (Secondary).
Success = 3
Green (Success).
Danger = 4
Red (Danger).
Link = 5
Grey Link (Link).
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
Source§impl<'de> Deserialize<'de> for ButtonStyle
impl<'de> Deserialize<'de> for ButtonStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ButtonStyle> for u8
impl From<ButtonStyle> for u8
Source§fn from(value: ButtonStyle) -> Self
fn from(value: ButtonStyle) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ButtonStyle
impl From<u8> for ButtonStyle
Source§impl PartialEq for ButtonStyle
impl PartialEq for ButtonStyle
Source§impl Serialize for ButtonStyle
impl Serialize for ButtonStyle
impl Copy for ButtonStyle
impl Eq for ButtonStyle
impl StructuralPartialEq 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