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