Struct tdlib::types::StickerSet

source ·
pub struct StickerSet {
Show 13 fields pub id: i64, pub title: String, pub name: String, pub thumbnail: Option<Thumbnail>, pub thumbnail_outline: Vec<ClosedVectorPath>, pub is_installed: bool, pub is_archived: bool, pub is_official: bool, pub sticker_format: StickerFormat, pub sticker_type: StickerType, pub is_viewed: bool, pub stickers: Vec<Sticker>, pub emojis: Vec<Emojis>,
}
Expand description

Represents a sticker set

Fields§

§id: i64

Identifier of the sticker set

§title: String

Title of the sticker set

§name: String

Name of the sticker set

§thumbnail: Option<Thumbnail>

Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed

§thumbnail_outline: Vec<ClosedVectorPath>

Sticker set thumbnail’s outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner

§is_installed: bool

True, if the sticker set has been installed by the current user

§is_archived: bool

True, if the sticker set has been archived. A sticker set can’t be installed and archived simultaneously

§is_official: bool

True, if the sticker set is official

§sticker_format: StickerFormat

Format of the stickers in the set

§sticker_type: StickerType

Type of the stickers in the set

§is_viewed: bool

True for already viewed trending sticker sets

§stickers: Vec<Sticker>

List of stickers in this set

§emojis: Vec<Emojis>

A list of emoji corresponding to the stickers in the same order. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.