Enum discord_flows::model::component::ButtonStyle
source · #[non_exhaustive]#[repr(u8)]pub enum ButtonStyle {
Primary,
Secondary,
Success,
Danger,
Link,
Unknown,
}
Expand description
The style of a button.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
source§impl Clone for ButtonStyle
impl Clone for ButtonStyle
source§fn clone(&self) -> ButtonStyle
fn clone(&self) -> ButtonStyle
Returns a copy 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<ButtonStyle, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ButtonStyle, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ButtonStyle
impl Hash for ButtonStyle
source§impl Ord for ButtonStyle
impl Ord for ButtonStyle
source§fn cmp(&self, other: &ButtonStyle) -> Ordering
fn cmp(&self, other: &ButtonStyle) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ButtonStyle> for ButtonStyle
impl PartialEq<ButtonStyle> for ButtonStyle
source§fn eq(&self, other: &ButtonStyle) -> bool
fn eq(&self, other: &ButtonStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ButtonStyle> for ButtonStyle
impl PartialOrd<ButtonStyle> for ButtonStyle
source§fn partial_cmp(&self, other: &ButtonStyle) -> Option<Ordering>
fn partial_cmp(&self, other: &ButtonStyle) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ButtonStyle
impl Serialize for ButtonStyle
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ButtonStyle
impl Eq for ButtonStyle
impl StructuralEq for ButtonStyle
impl StructuralPartialEq for ButtonStyle
Auto Trait Implementations§
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