Struct frankenstein::objects::InlineQueryResultCachedGif
source · pub struct InlineQueryResultCachedGif {
pub id: String,
pub gif_file_id: 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_file_id: String
§title: Option<String>
§parse_mode: Option<ParseMode>
§reply_markup: Option<InlineKeyboardMarkup>
§input_message_content: Option<InputMessageContent>
Implementations§
source§impl InlineQueryResultCachedGif
impl InlineQueryResultCachedGif
sourcepub fn builder(
) -> InlineQueryResultCachedGifBuilder<((), (), (), (), (), (), (), ())>
pub fn builder( ) -> InlineQueryResultCachedGifBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building InlineQueryResultCachedGif
.
On the builder, call .id(...)
, .gif_file_id(...)
, .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 InlineQueryResultCachedGif
.
Trait Implementations§
source§impl Clone for InlineQueryResultCachedGif
impl Clone for InlineQueryResultCachedGif
source§fn clone(&self) -> InlineQueryResultCachedGif
fn clone(&self) -> InlineQueryResultCachedGif
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InlineQueryResultCachedGif
impl Debug for InlineQueryResultCachedGif
source§impl<'de> Deserialize<'de> for InlineQueryResultCachedGif
impl<'de> Deserialize<'de> for InlineQueryResultCachedGif
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for InlineQueryResultCachedGif
impl PartialEq for InlineQueryResultCachedGif
source§fn eq(&self, other: &InlineQueryResultCachedGif) -> bool
fn eq(&self, other: &InlineQueryResultCachedGif) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InlineQueryResultCachedGif
Auto Trait Implementations§
impl Freeze for InlineQueryResultCachedGif
impl RefUnwindSafe for InlineQueryResultCachedGif
impl Send for InlineQueryResultCachedGif
impl Sync for InlineQueryResultCachedGif
impl Unpin for InlineQueryResultCachedGif
impl UnwindSafe for InlineQueryResultCachedGif
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
Mutably borrows from an owned value. Read more