pub struct Sticker {
pub file_id: String,
pub file_unique_id: String,
pub sticker_type: String,
pub emoji: Option<String>,
pub set_name: Option<String>,
pub is_animated: bool,
pub is_video: bool,
}Expand description
A sticker attached to a message or contained in a sticker set.
Fields§
§file_id: StringIdentifier usable with sendSticker to resend it.
file_unique_id: StringPersistent identifier invariant across bots and re-uploads.
sticker_type: Stringregular, mask, or custom_emoji.
emoji: Option<String>The emoji associated with the sticker.
set_name: Option<String>Name of the sticker set it belongs to, if any.
is_animated: boolTrue for .tgs animated stickers.
is_video: boolTrue for .webm video stickers.
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