Struct frankenstein::objects::InlineQueryResultVideo
source · [−]pub struct InlineQueryResultVideo {Show 14 fields
pub id: String,
pub video_url: String,
pub mime_type: String,
pub thumb_url: String,
pub title: String,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub video_width: Option<u32>,
pub video_height: Option<u32>,
pub video_duration: Option<u32>,
pub description: Option<String>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}
Fields
id: String
video_url: String
mime_type: String
thumb_url: String
title: String
caption: Option<String>
parse_mode: Option<ParseMode>
caption_entities: Option<Vec<MessageEntity>>
video_width: Option<u32>
video_height: Option<u32>
video_duration: Option<u32>
description: Option<String>
reply_markup: Option<InlineKeyboardMarkup>
input_message_content: Option<InputMessageContent>
Implementations
sourceimpl InlineQueryResultVideo
impl InlineQueryResultVideo
sourcepub fn builder(
) -> InlineQueryResultVideoBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> InlineQueryResultVideoBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building InlineQueryResultVideo
.
On the builder, call .id(...)
, .video_url(...)
, .mime_type(...)
, .thumb_url(...)
, .title(...)
, .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .video_width(...)
(optional), .video_height(...)
(optional), .video_duration(...)
(optional), .description(...)
(optional), .reply_markup(...)
(optional), .input_message_content(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InlineQueryResultVideo
.
Trait Implementations
sourceimpl Clone for InlineQueryResultVideo
impl Clone for InlineQueryResultVideo
sourcefn clone(&self) -> InlineQueryResultVideo
fn clone(&self) -> InlineQueryResultVideo
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 InlineQueryResultVideo
impl Debug for InlineQueryResultVideo
sourceimpl<'de> Deserialize<'de> for InlineQueryResultVideo
impl<'de> Deserialize<'de> for InlineQueryResultVideo
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<InlineQueryResultVideo> for InlineQueryResultVideo
impl PartialEq<InlineQueryResultVideo> for InlineQueryResultVideo
sourcefn eq(&self, other: &InlineQueryResultVideo) -> bool
fn eq(&self, other: &InlineQueryResultVideo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InlineQueryResultVideo) -> bool
fn ne(&self, other: &InlineQueryResultVideo) -> bool
This method tests for !=
.
sourceimpl Serialize for InlineQueryResultVideo
impl Serialize for InlineQueryResultVideo
impl StructuralPartialEq for InlineQueryResultVideo
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultVideo
impl Send for InlineQueryResultVideo
impl Sync for InlineQueryResultVideo
impl Unpin for InlineQueryResultVideo
impl UnwindSafe for InlineQueryResultVideo
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