pub struct Button {
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§
§custom_id: Option<String>
User defined identifier for the button.
This field is required when using the following ButtonStyle
s:
disabled: bool
Whether 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: ButtonStyle
Style 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)