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