Struct telegram_types::bot::types::Sticker
source · pub struct Sticker {
pub file_id: FileId,
pub width: i32,
pub height: i32,
pub thumb: Option<PhotoSize>,
pub emoji: Option<String>,
pub set_name: Option<String>,
pub mask_position: Option<MaskPosition>,
pub file_size: i32,
}
Fields
file_id: FileId
width: i32
height: i32
thumb: Option<PhotoSize>
emoji: Option<String>
Emoji associated with the sticker
set_name: Option<String>
Name of the sticker set to which the sticker belongs
mask_position: Option<MaskPosition>
For mask stickers, the position where the mask should be placed
file_size: i32
File size
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Sticker
impl<'de> Deserialize<'de> for Sticker
sourcefn 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 RefUnwindSafe for Sticker
impl Send for Sticker
impl Sync for Sticker
impl Unpin for Sticker
impl UnwindSafe for Sticker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more