pub struct ButtonObject {
pub style: u32,
pub label: Option<String>,
pub emoji: Option<Emoji>,
pub custom_id: Option<String>,
pub url: Option<String>,
pub disabled: bool,
}Expand description
Represents a button object.
Fields§
§style: u32Style of the button.
label: Option<String>Label for the button.
emoji: Option<Emoji>Emoji for the button.
custom_id: Option<String>Custom ID for the button.
url: Option<String>URL for the button.
disabled: boolWhether the button is disabled.
Trait Implementations§
Source§impl Default for ButtonObject
impl Default for ButtonObject
Source§fn default() -> ButtonObject
fn default() -> ButtonObject
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ButtonObject
impl RefUnwindSafe for ButtonObject
impl Send for ButtonObject
impl Sync for ButtonObject
impl Unpin for ButtonObject
impl UnsafeUnpin for ButtonObject
impl UnwindSafe for ButtonObject
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