pub struct StickerSet {
pub name: Box<str>,
pub title: Box<str>,
pub sticker_type: Box<str>,
pub stickers: Box<[Sticker]>,
pub thumbnail: Option<PhotoSize>,
}Expand description
Fields§
§name: Box<str>Sticker set name
title: Box<str>Sticker set title
sticker_type: Box<str>Type of stickers in the set, currently one of regular, mask, custom_emoji
stickers: Box<[Sticker]>List of all set stickers
thumbnail: Option<PhotoSize>Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format
Implementations§
Source§impl StickerSet
impl StickerSet
Sourcepub fn new<T0: Into<Box<str>>, T1: Into<Box<str>>, T2: Into<Box<str>>, T3Item: Into<Sticker>, T3: IntoIterator<Item = T3Item>>(
name: T0,
title: T1,
sticker_type: T2,
stickers: T3,
) -> Self
pub fn new<T0: Into<Box<str>>, T1: Into<Box<str>>, T2: Into<Box<str>>, T3Item: Into<Sticker>, T3: IntoIterator<Item = T3Item>>( name: T0, title: T1, sticker_type: T2, stickers: T3, ) -> Self
Sourcepub fn sticker_type<T: Into<Box<str>>>(self, val: T) -> Self
pub fn sticker_type<T: Into<Box<str>>>(self, val: T) -> Self
Type of stickers in the set, currently one of regular, mask, custom_emoji
Sourcepub fn thumbnail<T: Into<PhotoSize>>(self, val: T) -> Self
pub fn thumbnail<T: Into<PhotoSize>>(self, val: T) -> Self
Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format
Sourcepub fn thumbnail_option<T: Into<PhotoSize>>(self, val: Option<T>) -> Self
pub fn thumbnail_option<T: Into<PhotoSize>>(self, val: Option<T>) -> Self
Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format
Trait Implementations§
Source§impl Clone for StickerSet
impl Clone for StickerSet
Source§fn clone(&self) -> StickerSet
fn clone(&self) -> StickerSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StickerSet
impl Debug for StickerSet
Source§impl<'de> Deserialize<'de> for StickerSet
impl<'de> Deserialize<'de> for StickerSet
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 StickerSet
impl RefUnwindSafe for StickerSet
impl Send for StickerSet
impl Sync for StickerSet
impl Unpin for StickerSet
impl UnsafeUnpin for StickerSet
impl UnwindSafe for StickerSet
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