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
source§impl PartialEq<Animation> for Animation
impl PartialEq<Animation> for Animation
impl Eq for Animation
impl StructuralEq for Animation
impl StructuralPartialEq for Animation
Auto Trait Implementations§
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnwindSafe for Animation
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