#[non_exhaustive]pub struct UnknownButton {
pub id: Option<i32>,
pub style: ButtonStyle,
pub custom_id: Option<CompactString>,
pub label: Option<CompactString>,
pub emoji: Option<PartialEmoji>,
pub url: Option<CompactString>,
pub sku_id: Option<SkuId>,
pub disabled: bool,
}Expand description
A button whose style this version of the library does not know about; every button field is kept.
discord.js counterpart: none (a button style unknown to this version, kept as received).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<i32>The component’s numeric identifier.
style: ButtonStyleThe raw style.
custom_id: Option<CompactString>The developer-defined identifier.
label: Option<CompactString>The text on the button.
emoji: Option<PartialEmoji>The emoji on the button.
url: Option<CompactString>The URL.
sku_id: Option<SkuId>The SKU.
disabled: boolWhether the button is disabled.
Trait Implementations§
Source§impl Clone for UnknownButton
impl Clone for UnknownButton
Source§impl Debug for UnknownButton
impl Debug for UnknownButton
impl Eq for UnknownButton
Source§impl PartialEq for UnknownButton
impl PartialEq for UnknownButton
Source§impl Serialize for UnknownButton
impl Serialize for UnknownButton
impl StructuralPartialEq for UnknownButton
Auto Trait Implementations§
impl Freeze for UnknownButton
impl RefUnwindSafe for UnknownButton
impl Send for UnknownButton
impl Sync for UnknownButton
impl Unpin for UnknownButton
impl UnsafeUnpin for UnknownButton
impl UnwindSafe for UnknownButton
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