Struct botapi::gen_types::InlineQueryResultArticleBuilder
source · pub struct InlineQueryResultArticleBuilder {
pub tg_type: String,
pub id: String,
pub title: String,
pub input_message_content: BoxWrapper<Unbox<InputMessageContent>>,
pub reply_markup: Option<BoxWrapper<Unbox<InlineKeyboardMarkup>>>,
pub url: Option<String>,
pub hide_url: Option<bool>,
pub description: Option<String>,
pub thumbnail_url: Option<String>,
pub thumbnail_width: Option<i64>,
pub thumbnail_height: Option<i64>,
}
Expand description
Represents a link to an article or web page.
Fields§
§tg_type: String
Type of the result, must be article
id: String
Unique identifier for this result, 1-64 Bytes
title: String
Title of the result
input_message_content: BoxWrapper<Unbox<InputMessageContent>>
Content of the message to be sent
reply_markup: Option<BoxWrapper<Unbox<InlineKeyboardMarkup>>>
Optional. Inline keyboard attached to the message
url: Option<String>
Optional. URL of the result
hide_url: Option<bool>
Optional. Pass True if you don’t want the URL to be shown in the message
description: Option<String>
Optional. Short description of the result
thumbnail_url: Option<String>
Optional. Url of the thumbnail for the result
thumbnail_width: Option<i64>
Optional. Thumbnail width
thumbnail_height: Option<i64>
Optional. Thumbnail height
Implementations§
source§impl InlineQueryResultArticleBuilder
impl InlineQueryResultArticleBuilder
pub fn new<A: Into<InputMessageContent>>( id: String, title: String, input_message_content: A, ) -> Self
sourcepub fn set_input_message_content(
self,
input_message_content: InputMessageContent,
) -> Self
pub fn set_input_message_content( self, input_message_content: InputMessageContent, ) -> Self
Content of the message to be sent
sourcepub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
pub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
Optional. Inline keyboard attached to the message
sourcepub fn set_hide_url(self, hide_url: bool) -> Self
pub fn set_hide_url(self, hide_url: bool) -> Self
Optional. Pass True if you don’t want the URL to be shown in the message
sourcepub fn set_description(self, description: String) -> Self
pub fn set_description(self, description: String) -> Self
Optional. Short description of the result
sourcepub fn set_thumbnail_url(self, thumbnail_url: String) -> Self
pub fn set_thumbnail_url(self, thumbnail_url: String) -> Self
Optional. Url of the thumbnail for the result
sourcepub fn set_thumbnail_width(self, thumbnail_width: i64) -> Self
pub fn set_thumbnail_width(self, thumbnail_width: i64) -> Self
Optional. Thumbnail width
sourcepub fn set_thumbnail_height(self, thumbnail_height: i64) -> Self
pub fn set_thumbnail_height(self, thumbnail_height: i64) -> Self
Optional. Thumbnail height
pub fn build(self) -> InlineQueryResultArticle
Trait Implementations§
source§impl Clone for InlineQueryResultArticleBuilder
impl Clone for InlineQueryResultArticleBuilder
source§fn clone(&self) -> InlineQueryResultArticleBuilder
fn clone(&self) -> InlineQueryResultArticleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InlineQueryResultArticleBuilder
impl Default for InlineQueryResultArticleBuilder
source§fn default() -> InlineQueryResultArticleBuilder
fn default() -> InlineQueryResultArticleBuilder
source§impl<'de> Deserialize<'de> for InlineQueryResultArticleBuilder
impl<'de> Deserialize<'de> for InlineQueryResultArticleBuilder
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>,
source§impl Ord for InlineQueryResultArticleBuilder
impl Ord for InlineQueryResultArticleBuilder
source§fn cmp(&self, other: &InlineQueryResultArticleBuilder) -> Ordering
fn cmp(&self, other: &InlineQueryResultArticleBuilder) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InlineQueryResultArticleBuilder
impl PartialEq for InlineQueryResultArticleBuilder
source§fn eq(&self, other: &InlineQueryResultArticleBuilder) -> bool
fn eq(&self, other: &InlineQueryResultArticleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InlineQueryResultArticleBuilder
impl PartialOrd for InlineQueryResultArticleBuilder
source§fn partial_cmp(
&self,
other: &InlineQueryResultArticleBuilder,
) -> Option<Ordering>
fn partial_cmp( &self, other: &InlineQueryResultArticleBuilder, ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for InlineQueryResultArticleBuilder
impl StructuralPartialEq for InlineQueryResultArticleBuilder
Auto Trait Implementations§
impl Freeze for InlineQueryResultArticleBuilder
impl RefUnwindSafe for InlineQueryResultArticleBuilder
impl Send for InlineQueryResultArticleBuilder
impl Sync for InlineQueryResultArticleBuilder
impl Unpin for InlineQueryResultArticleBuilder
impl UnwindSafe for InlineQueryResultArticleBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.