#[non_exhaustive]pub struct StickerPack {
pub id: StickerPackId,
pub stickers: Vec<Sticker>,
pub name: String,
pub sku_id: SkuId,
pub cover_sticker_id: Option<StickerId>,
pub description: String,
pub banner_asset_id: StickerPackBannerId,
}
Expand description
A sticker sent with a message.
Bots currently can only receive messages with stickers, not send.
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: StickerPackId
The unique ID given to this sticker sticker pack.
stickers: Vec<Sticker>
The stickers in the pack
name: String
The name of the sticker pack
sku_id: SkuId
The unique ID given to the pack’s SKU.
cover_sticker_id: Option<StickerId>
ID of a sticker in the pack which is shown as the pack’s icon.
description: String
Description of the sticker pack.
The unique ID given to the sticker pack’s banner image.
Implementations§
Source§impl StickerPack
impl StickerPack
Sourcepub fn cover_sticker(&self) -> Option<&Sticker>
pub fn cover_sticker(&self) -> Option<&Sticker>
Returns the sticker that is shown as the pack’s icon
Trait Implementations§
Source§impl Clone for StickerPack
impl Clone for StickerPack
Source§fn clone(&self) -> StickerPack
fn clone(&self) -> StickerPack
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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
Auto Trait Implementations§
impl Freeze for StickerPack
impl RefUnwindSafe for StickerPack
impl Send for StickerPack
impl Sync for StickerPack
impl Unpin 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