pub struct Button {
pub custom_id: Option<String>,
pub disabled: bool,
pub emoji: Option<ReactionType>,
pub label: Option<String>,
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<ReactionType>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.
Trait Implementations§
source§impl PartialEq<Button> for Button
impl PartialEq<Button> for Button
impl Eq for Button
impl StructuralEq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
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