pub struct InputInlineQueryResultVideo {
pub id: String,
pub title: String,
pub description: String,
pub thumbnail_url: String,
pub video_url: String,
pub mime_type: String,
pub video_width: i32,
pub video_height: i32,
pub video_duration: i32,
pub reply_markup: Option<ReplyMarkup>,
pub input_message_content: InputMessageContent,
}
Expand description
Represents a link to a page containing an embedded video player or a video file
Fields§
§id: String
Unique identifier of the query result
title: String
Title of the result
description: String
A short description of the result, if known
thumbnail_url: String
The URL of the video thumbnail (JPEG), if it exists
video_url: String
URL of the embedded video player or video file
mime_type: String
MIME type of the content of the video URL, only “text/html” or “video/mp4” are currently supported
video_width: i32
Width of the video
video_height: i32
Height of the video
video_duration: i32
Video duration, in seconds
reply_markup: Option<ReplyMarkup>
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null
input_message_content: InputMessageContent
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageVideo, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact
Trait Implementations§
Source§impl Clone for InputInlineQueryResultVideo
impl Clone for InputInlineQueryResultVideo
Source§fn clone(&self) -> InputInlineQueryResultVideo
fn clone(&self) -> InputInlineQueryResultVideo
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 InputInlineQueryResultVideo
impl Debug for InputInlineQueryResultVideo
Source§impl<'de> Deserialize<'de> for InputInlineQueryResultVideo
impl<'de> Deserialize<'de> for InputInlineQueryResultVideo
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
impl StructuralPartialEq for InputInlineQueryResultVideo
Auto Trait Implementations§
impl Freeze for InputInlineQueryResultVideo
impl RefUnwindSafe for InputInlineQueryResultVideo
impl Send for InputInlineQueryResultVideo
impl Sync for InputInlineQueryResultVideo
impl Unpin for InputInlineQueryResultVideo
impl UnwindSafe for InputInlineQueryResultVideo
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