pub struct InputMessageVideo {
pub video: InputFile,
pub thumbnail: InputThumbnail,
pub added_sticker_file_ids: Vec<i32>,
pub duration: i32,
pub width: i32,
pub height: i32,
pub supports_streaming: bool,
pub caption: FormattedText,
pub ttl: i32,
}
Expand description
A video message
Fields§
§video: InputFile
Video to be sent
thumbnail: InputThumbnail
Video thumbnail, if available
added_sticker_file_ids: Vec<i32>
File identifiers of the stickers added to the video, if applicable
duration: i32
Duration of the video, in seconds
width: i32
Video width
height: i32
Video height
supports_streaming: bool
True, if the video should be tried to be streamed
caption: FormattedText
Video caption; 0-GetOption(“message_caption_length_max”) characters
ttl: i32
Video TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats
Trait Implementations§
Source§impl Clone for InputMessageVideo
impl Clone for InputMessageVideo
Source§fn clone(&self) -> InputMessageVideo
fn clone(&self) -> InputMessageVideo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InputMessageVideo
impl Debug for InputMessageVideo
Source§impl<'de> Deserialize<'de> for InputMessageVideo
impl<'de> Deserialize<'de> for InputMessageVideo
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 InputMessageVideo
impl RefUnwindSafe for InputMessageVideo
impl Send for InputMessageVideo
impl Sync for InputMessageVideo
impl Unpin for InputMessageVideo
impl UnwindSafe for InputMessageVideo
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