pub struct Animation {
pub file: FileMeta,
pub width: u32,
pub height: u32,
pub duration: u32,
pub thumb: Option<PhotoSize>,
pub file_name: Option<String>,
pub mime_type: Option<Mime>,
}Expand description
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
Fields§
§file: FileMetaMetadata of the animation file.
width: u32A video width as defined by a sender.
height: u32A video height as defined by a sender.
duration: u32A duration of the video in seconds as defined by a sender.
thumb: Option<PhotoSize>An animation thumbnail as defined by a sender.
file_name: Option<String>An original animation filename as defined by a sender.
mime_type: Option<Mime>A MIME type of the file as defined by a sender.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Animation
impl<'de> Deserialize<'de> for Animation
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