pub struct InlineQueryResultCachedVideoBuilder {
pub tg_type: String,
pub id: String,
pub video_file_id: String,
pub title: String,
pub description: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub show_caption_above_media: Option<bool>,
pub reply_markup: Option<BoxWrapper<Unbox<InlineKeyboardMarkup>>>,
pub input_message_content: Option<BoxWrapper<Unbox<InputMessageContent>>>,
}
Expand description
Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.
Fields§
§tg_type: String
Type of the result, must be video
id: String
Unique identifier for this result, 1-64 bytes
video_file_id: String
A valid file identifier for the video file
title: String
Title for the result
description: Option<String>
Optional. Short description of the result
caption: Option<String>
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing
parse_mode: Option<String>
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
caption_entities: Option<Vec<MessageEntity>>
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
show_caption_above_media: Option<bool>
Optional. Pass True, if the caption must be shown above the message media
reply_markup: Option<BoxWrapper<Unbox<InlineKeyboardMarkup>>>
Optional. Inline keyboard attached to the message
input_message_content: Option<BoxWrapper<Unbox<InputMessageContent>>>
Optional. Content of the message to be sent instead of the video
Implementations§
source§impl InlineQueryResultCachedVideoBuilder
impl InlineQueryResultCachedVideoBuilder
pub fn new(id: String, video_file_id: String, title: String) -> Self
sourcepub fn set_video_file_id(self, video_file_id: String) -> Self
pub fn set_video_file_id(self, video_file_id: String) -> Self
A valid file identifier for the video file
sourcepub fn set_description(self, description: String) -> Self
pub fn set_description(self, description: String) -> Self
Optional. Short description of the result
sourcepub fn set_caption(self, caption: String) -> Self
pub fn set_caption(self, caption: String) -> Self
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing
sourcepub fn set_parse_mode(self, parse_mode: String) -> Self
pub fn set_parse_mode(self, parse_mode: String) -> Self
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
sourcepub fn set_caption_entities(self, caption_entities: Vec<MessageEntity>) -> Self
pub fn set_caption_entities(self, caption_entities: Vec<MessageEntity>) -> Self
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
sourcepub fn set_show_caption_above_media(
self,
show_caption_above_media: bool,
) -> Self
pub fn set_show_caption_above_media( self, show_caption_above_media: bool, ) -> Self
Optional. Pass True, if the caption must be shown above the message media
sourcepub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
pub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
Optional. Inline keyboard attached to the message
sourcepub fn set_input_message_content(
self,
input_message_content: InputMessageContent,
) -> Self
pub fn set_input_message_content( self, input_message_content: InputMessageContent, ) -> Self
Optional. Content of the message to be sent instead of the video
pub fn build(self) -> InlineQueryResultCachedVideo
Trait Implementations§
source§impl Clone for InlineQueryResultCachedVideoBuilder
impl Clone for InlineQueryResultCachedVideoBuilder
source§fn clone(&self) -> InlineQueryResultCachedVideoBuilder
fn clone(&self) -> InlineQueryResultCachedVideoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InlineQueryResultCachedVideoBuilder
impl Default for InlineQueryResultCachedVideoBuilder
source§fn default() -> InlineQueryResultCachedVideoBuilder
fn default() -> InlineQueryResultCachedVideoBuilder
source§impl<'de> Deserialize<'de> for InlineQueryResultCachedVideoBuilder
impl<'de> Deserialize<'de> for InlineQueryResultCachedVideoBuilder
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>,
source§impl Ord for InlineQueryResultCachedVideoBuilder
impl Ord for InlineQueryResultCachedVideoBuilder
source§fn cmp(&self, other: &InlineQueryResultCachedVideoBuilder) -> Ordering
fn cmp(&self, other: &InlineQueryResultCachedVideoBuilder) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InlineQueryResultCachedVideoBuilder
impl PartialEq for InlineQueryResultCachedVideoBuilder
source§fn eq(&self, other: &InlineQueryResultCachedVideoBuilder) -> bool
fn eq(&self, other: &InlineQueryResultCachedVideoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InlineQueryResultCachedVideoBuilder
impl PartialOrd for InlineQueryResultCachedVideoBuilder
source§fn partial_cmp(
&self,
other: &InlineQueryResultCachedVideoBuilder,
) -> Option<Ordering>
fn partial_cmp( &self, other: &InlineQueryResultCachedVideoBuilder, ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for InlineQueryResultCachedVideoBuilder
impl StructuralPartialEq for InlineQueryResultCachedVideoBuilder
Auto Trait Implementations§
impl Freeze for InlineQueryResultCachedVideoBuilder
impl RefUnwindSafe for InlineQueryResultCachedVideoBuilder
impl Send for InlineQueryResultCachedVideoBuilder
impl Sync for InlineQueryResultCachedVideoBuilder
impl Unpin for InlineQueryResultCachedVideoBuilder
impl UnwindSafe for InlineQueryResultCachedVideoBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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
key
and return true
if they are equal.