#[non_exhaustive]pub struct PremiumButton {
pub id: Option<i32>,
pub sku_id: SkuId,
pub disabled: bool,
}Expand description
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 (generated by Discord when not set).
sku_id: SkuIdThe SKU to purchase.
disabled: boolWhether the button is disabled.
Implementations§
Trait Implementations§
Source§impl Clone for PremiumButton
impl Clone for PremiumButton
Source§impl Debug for PremiumButton
impl Debug for PremiumButton
impl Eq for PremiumButton
Source§impl From<PremiumButton> for Button
impl From<PremiumButton> for Button
Source§fn from(button: PremiumButton) -> Self
fn from(button: PremiumButton) -> Self
Converts to this type from the input type.
Source§impl From<PremiumButton> for Component
impl From<PremiumButton> for Component
Source§fn from(button: PremiumButton) -> Self
fn from(button: PremiumButton) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PremiumButton
impl PartialEq for PremiumButton
Source§impl Serialize for PremiumButton
impl Serialize for PremiumButton
impl StructuralPartialEq for PremiumButton
Auto Trait Implementations§
impl Freeze for PremiumButton
impl RefUnwindSafe for PremiumButton
impl Send for PremiumButton
impl Sync for PremiumButton
impl Unpin for PremiumButton
impl UnsafeUnpin for PremiumButton
impl UnwindSafe for PremiumButton
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