pub struct AnimatedEmoji {
pub sticker: Option<Sticker>,
pub sticker_width: i32,
pub sticker_height: i32,
pub fitzpatrick_type: i32,
pub sound: Option<File>,
}
Expand description
Describes an animated or custom representation of an emoji
Fields§
§sticker: Option<Sticker>
Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, then it can have arbitrary format
sticker_width: i32
Expected width of the sticker, which can be used if the sticker is null
sticker_height: i32
Expected height of the sticker, which can be used if the sticker is null
fitzpatrick_type: i32
Emoji modifier fitzpatrick type; 0-6; 0 if none
sound: Option<File>
File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus codec, and stored inside an OGG container
Trait Implementations§
Source§impl Clone for AnimatedEmoji
impl Clone for AnimatedEmoji
Source§fn clone(&self) -> AnimatedEmoji
fn clone(&self) -> AnimatedEmoji
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AnimatedEmoji
impl Debug for AnimatedEmoji
Source§impl<'de> Deserialize<'de> for AnimatedEmoji
impl<'de> Deserialize<'de> for AnimatedEmoji
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
Source§impl PartialEq for AnimatedEmoji
impl PartialEq for AnimatedEmoji
Source§impl Serialize for AnimatedEmoji
impl Serialize for AnimatedEmoji
impl StructuralPartialEq for AnimatedEmoji
Auto Trait Implementations§
impl Freeze for AnimatedEmoji
impl RefUnwindSafe for AnimatedEmoji
impl Send for AnimatedEmoji
impl Sync for AnimatedEmoji
impl Unpin for AnimatedEmoji
impl UnwindSafe for AnimatedEmoji
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