pub struct Sticker {Show 15 fields
pub file_id: String,
pub file_unique_id: String,
pub kind: StickerType,
pub width: u32,
pub height: u32,
pub is_animated: bool,
pub is_video: bool,
pub thumbnail: Option<PhotoSize>,
pub emoji: Option<String>,
pub set_name: Option<String>,
pub premium_animation: Option<File>,
pub mask_position: Option<MaskPosition>,
pub custom_emoji_id: Option<String>,
pub needs_repainting: Option<bool>,
pub file_size: Option<u64>,
}Expand description
A Telegram sticker.
Fields§
§file_id: StringTelegram file identifier.
file_unique_id: StringUnique file identifier, stable across bots and time.
kind: StickerTypeSticker type.
width: u32Sticker width in pixels.
height: u32Sticker height in pixels.
is_animated: booltrue if the sticker is animated (TGS format).
is_video: booltrue if the sticker is a video sticker (WEBM format).
thumbnail: Option<PhotoSize>Sticker thumbnail.
emoji: Option<String>Emoji associated with the sticker.
set_name: Option<String>Name of the sticker set this sticker belongs to.
Premium animation for the sticker.
mask_position: Option<MaskPosition>Mask position for mask stickers.
custom_emoji_id: Option<String>Custom emoji identifier for custom emoji stickers.
needs_repainting: Option<bool>true if the sticker must be repainted to a text color in messages.
file_size: Option<u64>File size in bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sticker
impl<'de> Deserialize<'de> for Sticker
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 Sticker
impl RefUnwindSafe for Sticker
impl Send for Sticker
impl Sync for Sticker
impl Unpin for Sticker
impl UnsafeUnpin for Sticker
impl UnwindSafe for Sticker
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