#[non_exhaustive]pub struct StickerPack {
pub id: StickerPackId,
pub stickers: Vec<Sticker>,
pub name: CompactString,
pub sku_id: SkuId,
pub cover_sticker_id: Option<StickerId>,
pub description: CompactString,
pub banner_asset_id: Option<GenericId>,
}Expand description
discord.js counterpart: StickerPack.
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: StickerPackIdThe pack’s ID.
stickers: Vec<Sticker>The stickers in the pack.
name: CompactStringThe pack’s name.
sku_id: SkuIdThe pack’s SKU.
cover_sticker_id: Option<StickerId>The sticker shown as the pack’s icon.
description: CompactStringThe pack’s description.
The ID of the pack’s banner image.
Trait Implementations§
Source§impl Clone for StickerPack
impl Clone for StickerPack
Source§impl Debug for StickerPack
impl Debug for StickerPack
Source§impl<'de> Deserialize<'de> for StickerPack
impl<'de> Deserialize<'de> for StickerPack
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
impl Eq for StickerPack
Source§impl PartialEq for StickerPack
impl PartialEq for StickerPack
Source§impl Serialize for StickerPack
impl Serialize for StickerPack
impl StructuralPartialEq for StickerPack
Auto Trait Implementations§
impl Forget for StickerPack
impl Freeze for StickerPack
impl Move for StickerPack
impl RefUnwindSafe for StickerPack
impl Send for StickerPack
impl Sync for StickerPack
impl Unpin for StickerPack
impl UnsafeUnpin for StickerPack
impl UnwindSafe for StickerPack
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