pub struct Button {
pub id: Option<i32>,
pub custom_id: Option<String>,
pub disabled: bool,
pub emoji: Option<EmojiReactionType>,
pub label: Option<String>,
pub style: ButtonStyle,
pub url: Option<String>,
pub sku_id: Option<Id<SkuMarker>>,
}Expand description
Clickable Component below messages.
Fields§
§id: Option<i32>Optional identifier for the button.
custom_id: Option<String>User defined identifier for the button.
This field is required when using the following ButtonStyles:
disabled: boolWhether the button is disabled.
Defaults to false.
emoji: Option<EmojiReactionType>Visual emoji for clients to display with the button.
label: Option<String>Text appearing on the button.
style: ButtonStyleStyle variant of the button.
url: Option<String>URL for buttons of a ButtonStyle::Link style.
sku_id: Option<Id<SkuMarker>>The ID of the SKU that is attached to the button.
This field is required when using the ButtonStyle::Premium style.
Trait Implementations§
impl Eq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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