pub struct InputMediaVideo {Show 13 fields
pub media: String,
pub thumbnail: Option<String>,
pub cover: Option<String>,
pub start_timestamp: Option<i64>,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub show_caption_above_media: Option<bool>,
pub width: Option<u32>,
pub height: Option<u32>,
pub duration: Option<u32>,
pub supports_streaming: Option<bool>,
pub has_spoiler: Option<bool>,
}Expand description
A video to include in a media group or replace an existing media message.
Fields§
§media: StringFile to send: file_id, HTTP URL, or "attach://<n>".
thumbnail: Option<String>Thumbnail: file_id or "attach://<n>".
cover: Option<String>Cover image: file_id, HTTP URL, or "attach://<n>".
start_timestamp: Option<i64>Start timestamp for the video in the message.
caption: Option<String>Caption (0–1024 characters after entities parsing).
parse_mode: Option<ParseMode>Parse mode for the caption.
caption_entities: Option<Vec<MessageEntity>>Special entities in the caption.
show_caption_above_media: Option<bool>true if the caption must be shown above the media.
width: Option<u32>Video width in pixels.
height: Option<u32>Video height in pixels.
duration: Option<u32>Video duration in seconds.
supports_streaming: Option<bool>true if the uploaded video is suitable for streaming.
has_spoiler: Option<bool>true if the video needs a spoiler animation.
Trait Implementations§
Source§impl Clone for InputMediaVideo
impl Clone for InputMediaVideo
Source§fn clone(&self) -> InputMediaVideo
fn clone(&self) -> InputMediaVideo
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 InputMediaVideo
impl Debug for InputMediaVideo
Source§impl<'de> Deserialize<'de> for InputMediaVideo
impl<'de> Deserialize<'de> for InputMediaVideo
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 InputMediaVideo
impl RefUnwindSafe for InputMediaVideo
impl Send for InputMediaVideo
impl Sync for InputMediaVideo
impl Unpin for InputMediaVideo
impl UnsafeUnpin for InputMediaVideo
impl UnwindSafe for InputMediaVideo
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