#[non_exhaustive]pub struct Sticker {
pub file_id: Id,
pub file_unique_id: String,
pub width: u32,
pub height: u32,
pub thumb: Option<PhotoSize>,
pub emoji: Option<String>,
pub set_name: Option<String>,
pub file_size: Option<u32>,
pub kind: Kind,
}
Expand description
Represents a Sticker
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.file_id: Id
The file ID of the sticker.
file_unique_id: String
The unique ID of the sticker.
width: u32
The width of the sticker.
height: u32
The height of the sticker.
thumb: Option<PhotoSize>
The thumb of the sticker.
emoji: Option<String>
The emoji of the sticker.
set_name: Option<String>
The sticker set name which contains the sticker.
file_size: Option<u32>
The file size of the sticker.
kind: Kind
The kind of the sticker.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sticker
impl<'de> Deserialize<'de> for Sticker
source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more