Struct tdlib_types::types::Video

source ·
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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.