pub struct Sticker {
pub set_id: i64,
pub width: i32,
pub height: i32,
pub emoji: String,
pub is_mask: bool,
pub mask_position: Option<MaskPosition>,
pub thumbnail: Option<PhotoSize>,
pub sticker: File,
}
Expand description
Describes a sticker
Fields§
§set_id: i64
The identifier of the sticker set to which the sticker belongs; 0 if none
width: i32
Sticker width; as defined by the sender
height: i32
Sticker height; as defined by the sender
emoji: String
Emoji corresponding to the sticker
is_mask: bool
True, if the sticker is a mask
mask_position: Option<MaskPosition>
Position where the mask should be placed; may be null
thumbnail: Option<PhotoSize>
Sticker thumbnail in WEBP or JPEG format; may be null
sticker: File
File containing the sticker
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 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