Struct frankenstein::objects::InlineQueryResultCachedVideo
source · [−]pub struct InlineQueryResultCachedVideo {
pub id: String,
pub video_file_id: String,
pub title: String,
pub description: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}
Fields
id: String
video_file_id: String
title: String
description: Option<String>
caption: Option<String>
parse_mode: Option<ParseMode>
caption_entities: Option<Vec<MessageEntity>>
reply_markup: Option<InlineKeyboardMarkup>
input_message_content: Option<InputMessageContent>
Implementations
sourceimpl InlineQueryResultCachedVideo
impl InlineQueryResultCachedVideo
sourcepub fn builder(
) -> InlineQueryResultCachedVideoBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> InlineQueryResultCachedVideoBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building InlineQueryResultCachedVideo
.
On the builder, call .id(...)
, .video_file_id(...)
, .title(...)
, .description(...)
(optional), .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .reply_markup(...)
(optional), .input_message_content(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InlineQueryResultCachedVideo
.
Trait Implementations
sourceimpl Clone for InlineQueryResultCachedVideo
impl Clone for InlineQueryResultCachedVideo
sourcefn clone(&self) -> InlineQueryResultCachedVideo
fn clone(&self) -> InlineQueryResultCachedVideo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InlineQueryResultCachedVideo
impl Debug for InlineQueryResultCachedVideo
sourceimpl<'de> Deserialize<'de> for InlineQueryResultCachedVideo
impl<'de> Deserialize<'de> for InlineQueryResultCachedVideo
sourcefn 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
sourceimpl PartialEq<InlineQueryResultCachedVideo> for InlineQueryResultCachedVideo
impl PartialEq<InlineQueryResultCachedVideo> for InlineQueryResultCachedVideo
sourcefn eq(&self, other: &InlineQueryResultCachedVideo) -> bool
fn eq(&self, other: &InlineQueryResultCachedVideo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InlineQueryResultCachedVideo) -> bool
fn ne(&self, other: &InlineQueryResultCachedVideo) -> bool
This method tests for !=
.
impl StructuralPartialEq for InlineQueryResultCachedVideo
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultCachedVideo
impl Send for InlineQueryResultCachedVideo
impl Sync for InlineQueryResultCachedVideo
impl Unpin for InlineQueryResultCachedVideo
impl UnwindSafe for InlineQueryResultCachedVideo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more