Struct frankenstein::objects::InlineQueryResultMpeg4Gif
source · [−]pub struct InlineQueryResultMpeg4Gif {Show 13 fields
pub id: String,
pub mpeg4_url: String,
pub mpeg4_width: Option<u32>,
pub mpeg4_height: Option<u32>,
pub mpeg4_duration: Option<u32>,
pub thumb_url: String,
pub thumb_mime_type: Option<String>,
pub title: 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
mpeg4_url: String
mpeg4_width: Option<u32>
mpeg4_height: Option<u32>
mpeg4_duration: Option<u32>
thumb_url: String
thumb_mime_type: Option<String>
title: Option<String>
parse_mode: Option<ParseMode>
reply_markup: Option<InlineKeyboardMarkup>
input_message_content: Option<InputMessageContent>
Implementations
sourceimpl InlineQueryResultMpeg4Gif
impl InlineQueryResultMpeg4Gif
sourcepub fn builder(
) -> InlineQueryResultMpeg4GifBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> InlineQueryResultMpeg4GifBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building InlineQueryResultMpeg4Gif
.
On the builder, call .id(...)
, .mpeg4_url(...)
, .mpeg4_width(...)
(optional), .mpeg4_height(...)
(optional), .mpeg4_duration(...)
(optional), .thumb_url(...)
, .thumb_mime_type(...)
(optional), .title(...)
(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 InlineQueryResultMpeg4Gif
.
Trait Implementations
sourceimpl Clone for InlineQueryResultMpeg4Gif
impl Clone for InlineQueryResultMpeg4Gif
sourcefn clone(&self) -> InlineQueryResultMpeg4Gif
fn clone(&self) -> InlineQueryResultMpeg4Gif
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 InlineQueryResultMpeg4Gif
impl Debug for InlineQueryResultMpeg4Gif
sourceimpl<'de> Deserialize<'de> for InlineQueryResultMpeg4Gif
impl<'de> Deserialize<'de> for InlineQueryResultMpeg4Gif
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<InlineQueryResultMpeg4Gif> for InlineQueryResultMpeg4Gif
impl PartialEq<InlineQueryResultMpeg4Gif> for InlineQueryResultMpeg4Gif
sourcefn eq(&self, other: &InlineQueryResultMpeg4Gif) -> bool
fn eq(&self, other: &InlineQueryResultMpeg4Gif) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InlineQueryResultMpeg4Gif) -> bool
fn ne(&self, other: &InlineQueryResultMpeg4Gif) -> bool
This method tests for !=
.
sourceimpl Serialize for InlineQueryResultMpeg4Gif
impl Serialize for InlineQueryResultMpeg4Gif
impl StructuralPartialEq for InlineQueryResultMpeg4Gif
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultMpeg4Gif
impl Send for InlineQueryResultMpeg4Gif
impl Sync for InlineQueryResultMpeg4Gif
impl Unpin for InlineQueryResultMpeg4Gif
impl UnwindSafe for InlineQueryResultMpeg4Gif
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