pub struct Video {
pub duration: i32,
pub width: i32,
pub height: i32,
pub file_name: String,
pub mime_type: String,
pub has_stickers: bool,
pub supports_streaming: bool,
pub thumbnail: Option<PhotoSize>,
pub video: File,
}
Expand description
Describes a video file
Fields§
§duration: i32
Duration of the video, in seconds; as defined by the sender
width: i32
Video width; as defined by the sender
height: i32
Video height; as defined by the sender
file_name: String
Original name of the file; as defined by the sender
mime_type: String
MIME type of the file; as defined by the sender
has_stickers: bool
True, if stickers were added to the photo
supports_streaming: bool
True, if the video should be tried to be streamed
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 Video
impl<'de> Deserialize<'de> for Video
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 Video
impl RefUnwindSafe for Video
impl Send for Video
impl Sync for Video
impl Unpin for Video
impl UnwindSafe for Video
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