pub struct NoSkipInlineQueryResultVideo {Show 16 fields
pub tg_type: String,
pub id: String,
pub video_url: String,
pub mime_type: String,
pub thumbnail_url: String,
pub title: String,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub show_caption_above_media: Option<bool>,
pub video_width: Option<i64>,
pub video_height: Option<i64>,
pub video_duration: Option<i64>,
pub description: Option<String>,
pub reply_markup: Option<BoxWrapper<Unbox<InlineKeyboardMarkup>>>,
pub input_message_content: Option<BoxWrapper<Unbox<InputMessageContent>>>,
}Expand description
Companion type to InlineQueryResultVideo that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§tg_type: StringType of the result, must be video
id: StringUnique identifier for this result, 1-64 bytes
video_url: StringA valid URL for the embedded video player or video file
mime_type: StringMIME type of the content of the video URL, “text/html” or “video/mp4”
thumbnail_url: StringURL of the thumbnail (JPEG only) for the video
title: StringTitle for the result
caption: Option<String>§parse_mode: Option<String>§caption_entities: Option<Vec<MessageEntity>>§show_caption_above_media: Option<bool>§video_width: Option<i64>§video_height: Option<i64>§video_duration: Option<i64>§description: Option<String>§reply_markup: Option<BoxWrapper<Unbox<InlineKeyboardMarkup>>>§input_message_content: Option<BoxWrapper<Unbox<InputMessageContent>>>Implementations§
Source§impl NoSkipInlineQueryResultVideo
impl NoSkipInlineQueryResultVideo
pub fn skip(self) -> InlineQueryResultVideo
Trait Implementations§
Source§impl Clone for NoSkipInlineQueryResultVideo
impl Clone for NoSkipInlineQueryResultVideo
Source§fn clone(&self) -> NoSkipInlineQueryResultVideo
fn clone(&self) -> NoSkipInlineQueryResultVideo
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 NoSkipInlineQueryResultVideo
impl Debug for NoSkipInlineQueryResultVideo
Source§impl Default for NoSkipInlineQueryResultVideo
impl Default for NoSkipInlineQueryResultVideo
Source§fn default() -> NoSkipInlineQueryResultVideo
fn default() -> NoSkipInlineQueryResultVideo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoSkipInlineQueryResultVideo
impl<'de> Deserialize<'de> for NoSkipInlineQueryResultVideo
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
Source§impl From<NoSkipInlineQueryResultVideo> for InlineQueryResultVideo
impl From<NoSkipInlineQueryResultVideo> for InlineQueryResultVideo
Source§fn from(t: NoSkipInlineQueryResultVideo) -> Self
fn from(t: NoSkipInlineQueryResultVideo) -> Self
Converts to this type from the input type.
Source§impl Hash for NoSkipInlineQueryResultVideo
impl Hash for NoSkipInlineQueryResultVideo
Source§impl Into<NoSkipInlineQueryResultVideo> for InlineQueryResultVideo
impl Into<NoSkipInlineQueryResultVideo> for InlineQueryResultVideo
Source§fn into(self) -> NoSkipInlineQueryResultVideo
fn into(self) -> NoSkipInlineQueryResultVideo
Converts this type into the (usually inferred) input type.
Source§impl Ord for NoSkipInlineQueryResultVideo
impl Ord for NoSkipInlineQueryResultVideo
Source§fn cmp(&self, other: &NoSkipInlineQueryResultVideo) -> Ordering
fn cmp(&self, other: &NoSkipInlineQueryResultVideo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NoSkipInlineQueryResultVideo
impl PartialEq for NoSkipInlineQueryResultVideo
Source§fn eq(&self, other: &NoSkipInlineQueryResultVideo) -> bool
fn eq(&self, other: &NoSkipInlineQueryResultVideo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NoSkipInlineQueryResultVideo
impl PartialOrd for NoSkipInlineQueryResultVideo
impl Eq for NoSkipInlineQueryResultVideo
impl StructuralPartialEq for NoSkipInlineQueryResultVideo
Auto Trait Implementations§
impl Freeze for NoSkipInlineQueryResultVideo
impl RefUnwindSafe for NoSkipInlineQueryResultVideo
impl Send for NoSkipInlineQueryResultVideo
impl Sync for NoSkipInlineQueryResultVideo
impl Unpin for NoSkipInlineQueryResultVideo
impl UnwindSafe for NoSkipInlineQueryResultVideo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.