Struct tg_bot_models::Video [−][src]
pub struct Video { pub file_id: String, pub width: i64, pub height: i64, pub duration: i64, pub thumb: Option<PhotoSize>, pub mime_type: Option<String>, pub file_size: Option<i64>, }
This object represents a video file.
Fields
file_id: String
Unique identifier for this file
width: i64
Video width as defined by sender
height: i64
Video height as defined by sender
duration: i64
Duration of the video in seconds as defined by sender
thumb: Option<PhotoSize>
Optional. Video thumbnail
mime_type: Option<String>
Optional. Mime type of a file as defined by sender
file_size: Option<i64>
Optional. File size
Trait Implementations
impl Debug for Video
[src]
impl Debug for Video
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Video
[src]
impl Clone for Video
fn clone(&self) -> Video
[src]
fn clone(&self) -> Video
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Video
[src]
impl PartialEq for Video
fn eq(&self, other: &Video) -> bool
[src]
fn eq(&self, other: &Video) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Video) -> bool
[src]
fn ne(&self, other: &Video) -> bool
This method tests for !=
.
impl PartialOrd for Video
[src]
impl PartialOrd for Video
fn partial_cmp(&self, other: &Video) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Video) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Video) -> bool
[src]
fn lt(&self, other: &Video) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Video) -> bool
[src]
fn le(&self, other: &Video) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Video) -> bool
[src]
fn gt(&self, other: &Video) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Video) -> bool
[src]
fn ge(&self, other: &Video) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more