Enum twilight_model::application::component::button::ButtonStyle [−][src]
#[repr(u8)]
pub enum ButtonStyle {
Primary,
Secondary,
Success,
Danger,
Link,
}Expand description
Style of a Button.
Refer to the discord docs for additional information.
Variants
Primary
Button indicates a primary action.
Selecting this button style requires specifying the
Button::custom_id field.
Secondary
Button indicates a secondary action.
Selecting this button style requires specifying the
Button::custom_id field.
Success
Button indicates a successful action.
Selecting this button style requires specifying the
Button::custom_id field.
Danger
Button indicates a dangerous action.
Selecting this button style requires specifying the
Button::custom_id field.
Link
Button indicates an action with a link.
Selecting this button style requires specifying the Button::url
field.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
