Struct telegram_bot::types::Video [−][src]
pub struct Video { pub file_id: String, pub width: Integer, pub height: Integer, pub duration: Integer, pub thumb: Option<PhotoSize>, pub mime_type: Option<String>, pub file_size: Option<Integer>, }
Telegram type "Video" (directly mapped)
Fields
file_id: String
width: Integer
height: Integer
duration: Integer
thumb: Option<PhotoSize>
mime_type: Option<String>
file_size: Option<Integer>
Trait Implementations
impl Decodable for Video
[src]
impl Decodable for Video
fn decode<__D: Decoder>(d: &mut __D) -> Result<Video, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<Video, __D::Error>
Deserialize a value using a Decoder
.
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 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 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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Encodable for Video
[src]
impl Encodable for Video