pub struct Button {
pub custom_id: Option<String>,
pub disabled: bool,
pub emoji: Option<EmojiReactionType>,
pub id: Option<i32>,
pub label: Option<String>,
pub sku_id: Option<Id<SkuMarker>>,
pub style: ButtonStyle,
pub url: Option<String>,
}Expand description
Clickable Component below messages.
Fields§
§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.
id: Option<i32>Optional identifier for the button.
label: Option<String>Text appearing on the button.
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.
style: ButtonStyleStyle variant of the button.
url: Option<String>URL for buttons of a ButtonStyle::Link style.
Trait Implementations§
impl Eq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl Forget for Button
impl Freeze for Buttonwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<fn(EmojiMarker) -> EmojiMarker>: Freeze,
NonZero<u64>: Freeze,
PhantomData<fn(SkuMarker) -> SkuMarker>: Freeze,
impl Move for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnsafeUnpin for Buttonwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<fn(EmojiMarker) -> EmojiMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<fn(SkuMarker) -> SkuMarker>: UnsafeUnpin,
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