pub struct Sticker {
pub id: i64,
pub set_id: i64,
pub width: i32,
pub height: i32,
pub emoji: String,
pub format: StickerFormat,
pub full_type: StickerFullType,
pub outline: Vec<ClosedVectorPath>,
pub thumbnail: Option<Thumbnail>,
pub sticker: File,
}
Expand description
Describes a sticker
Fields§
§id: i64
Unique sticker identifier within the set; 0 if none
set_id: i64
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
format: StickerFormat
Sticker format
full_type: StickerFullType
Sticker’s full type
outline: Vec<ClosedVectorPath>
Sticker’s outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner
thumbnail: Option<Thumbnail>
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
impl StructuralPartialEq for Sticker
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