Struct frankenstein::objects::InlineQueryResultDocument
source · [−]pub struct InlineQueryResultDocument {Show 13 fields
pub id: String,
pub title: String,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub document_url: String,
pub mime_type: String,
pub description: Option<String>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
pub thumb_url: Option<String>,
pub thumb_width: Option<u32>,
pub thumb_height: Option<u32>,
}
Fields
id: String
title: String
parse_mode: Option<ParseMode>
document_url: String
mime_type: String
description: Option<String>
reply_markup: Option<InlineKeyboardMarkup>
input_message_content: Option<InputMessageContent>
thumb_url: Option<String>
thumb_width: Option<u32>
thumb_height: Option<u32>
Implementations
sourceimpl InlineQueryResultDocument
impl InlineQueryResultDocument
sourcepub fn builder(
) -> InlineQueryResultDocumentBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> InlineQueryResultDocumentBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building InlineQueryResultDocument
.
On the builder, call .id(...)
, .title(...)
, .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .document_url(...)
, .mime_type(...)
, .description(...)
(optional), .reply_markup(...)
(optional), .input_message_content(...)
(optional), .thumb_url(...)
(optional), .thumb_width(...)
(optional), .thumb_height(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InlineQueryResultDocument
.
Trait Implementations
sourceimpl Clone for InlineQueryResultDocument
impl Clone for InlineQueryResultDocument
sourcefn clone(&self) -> InlineQueryResultDocument
fn clone(&self) -> InlineQueryResultDocument
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 InlineQueryResultDocument
impl Debug for InlineQueryResultDocument
sourceimpl<'de> Deserialize<'de> for InlineQueryResultDocument
impl<'de> Deserialize<'de> for InlineQueryResultDocument
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<InlineQueryResultDocument> for InlineQueryResultDocument
impl PartialEq<InlineQueryResultDocument> for InlineQueryResultDocument
sourcefn eq(&self, other: &InlineQueryResultDocument) -> bool
fn eq(&self, other: &InlineQueryResultDocument) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InlineQueryResultDocument) -> bool
fn ne(&self, other: &InlineQueryResultDocument) -> bool
This method tests for !=
.
sourceimpl Serialize for InlineQueryResultDocument
impl Serialize for InlineQueryResultDocument
impl StructuralPartialEq for InlineQueryResultDocument
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultDocument
impl Send for InlineQueryResultDocument
impl Sync for InlineQueryResultDocument
impl Unpin for InlineQueryResultDocument
impl UnwindSafe for InlineQueryResultDocument
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