pub struct ButtonComponent {
pub t: TypeField<2>,
pub style: ButtonStyle,
pub label: Option<String>,
pub emoji: Option<PartialEmoji>,
pub custom_id: Option<String>,
pub url: Option<String>,
pub disabled: Option<bool>,
}Expand description
Button Object
Fields§
§t: TypeField<2>§style: ButtonStyleButton style
label: Option<String>Text that appears on the button; max 80 characters
emoji: Option<PartialEmoji>name, id, and animated
custom_id: Option<String>Developer-defined identifier for the button; max 100 characters
url: Option<String>URL for link-style buttons
disabled: Option<bool>Whether the button is disabled (defaults to false)
Implementations§
Trait Implementations§
Source§impl Debug for ButtonComponent
impl Debug for ButtonComponent
Source§impl<'de> Deserialize<'de> for ButtonComponent
impl<'de> Deserialize<'de> for ButtonComponent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ButtonComponent
impl RefUnwindSafe for ButtonComponent
impl Send for ButtonComponent
impl Sync for ButtonComponent
impl Unpin for ButtonComponent
impl UnwindSafe for ButtonComponent
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