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