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