pub struct VideoNote {
pub duration: i32,
pub length: i32,
pub thumbnail: Option<PhotoSize>,
pub video: File,
}
Expand description
Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format
Fields§
§duration: i32
Duration of the video, in seconds; as defined by the sender
length: i32
Video width and height; as defined by the sender
thumbnail: Option<PhotoSize>
Video thumbnail; as defined by the sender; may be null
video: File
File containing the video
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VideoNote
impl<'de> Deserialize<'de> for VideoNote
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
Auto Trait Implementations§
impl Freeze for VideoNote
impl RefUnwindSafe for VideoNote
impl Send for VideoNote
impl Sync for VideoNote
impl Unpin for VideoNote
impl UnwindSafe for VideoNote
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