pub enum ButtonColor {
Primary,
Secondary,
Negative,
Positive,
}Expand description
Color of button
Variants§
Trait Implementations§
Source§impl Clone for ButtonColor
impl Clone for ButtonColor
Source§fn clone(&self) -> ButtonColor
fn clone(&self) -> ButtonColor
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 ButtonColor
impl Debug for ButtonColor
Source§impl<'de> Deserialize<'de> for ButtonColor
impl<'de> Deserialize<'de> for ButtonColor
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<ButtonColor> for String
impl From<ButtonColor> for String
Source§fn from(clr: ButtonColor) -> Self
fn from(clr: ButtonColor) -> Self
Converts to this type from the input type.
Source§impl From<String> for ButtonColor
impl From<String> for ButtonColor
Auto Trait Implementations§
impl Freeze for ButtonColor
impl RefUnwindSafe for ButtonColor
impl Send for ButtonColor
impl Sync for ButtonColor
impl Unpin for ButtonColor
impl UnwindSafe for ButtonColor
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