pub struct InlineQueryResultArticle {
pub kind: String,
pub id: String,
pub title: String,
pub input_message_content: InputMessageContentUnion,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub url: Option<String>,
pub description: Option<String>,
pub thumbnail_url: Option<String>,
pub thumbnail_width: Option<i64>,
pub thumbnail_height: Option<i64>,
pub hide_url: Option<bool>,
pub extra: BTreeMap<String, Value>,
}Expand description
Represents a link to an article or web page.
Fields§
§kind: StringType of the result, must be article
id: StringUnique identifier for this result, 1-64 Bytes
title: StringTitle of the result
input_message_content: InputMessageContentUnionContent of the message to be sent
reply_markup: Option<InlineKeyboardMarkup>Inline keyboard attached to the message
url: Option<String>URL of the result
description: Option<String>Short description of the result
thumbnail_url: Option<String>Url of the thumbnail for the result
thumbnail_width: Option<i64>Thumbnail width
thumbnail_height: Option<i64>Thumbnail height
hide_url: Option<bool>Pass True if you don’t want the URL to be shown in the message
extra: BTreeMap<String, Value>Implementations§
Source§impl InlineQueryResultArticle
impl InlineQueryResultArticle
pub fn new( id: impl Into<String>, title: impl Into<String>, input_message_content: impl Into<InputMessageContentUnion>, ) -> Self
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
pub fn url(self, value: impl Into<String>) -> Self
pub fn description(self, value: impl Into<String>) -> Self
pub fn thumbnail_url(self, value: impl Into<String>) -> Self
pub fn thumbnail_width(self, value: i64) -> Self
pub fn thumbnail_height(self, value: i64) -> Self
pub fn hide_url(self, value: bool) -> Self
Trait Implementations§
Source§impl Clone for InlineQueryResultArticle
impl Clone for InlineQueryResultArticle
Source§impl Debug for InlineQueryResultArticle
impl Debug for InlineQueryResultArticle
Source§impl<'de> Deserialize<'de> for InlineQueryResultArticle
impl<'de> Deserialize<'de> for InlineQueryResultArticle
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<InlineQueryResultArticle> for InlineQueryResultUnion
impl From<InlineQueryResultArticle> for InlineQueryResultUnion
Source§fn from(value: InlineQueryResultArticle) -> Self
fn from(value: InlineQueryResultArticle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InlineQueryResultArticle
impl PartialEq for InlineQueryResultArticle
Source§impl Serialize for InlineQueryResultArticle
impl Serialize for InlineQueryResultArticle
impl StructuralPartialEq for InlineQueryResultArticle
Auto Trait Implementations§
impl Freeze for InlineQueryResultArticle
impl RefUnwindSafe for InlineQueryResultArticle
impl Send for InlineQueryResultArticle
impl Sync for InlineQueryResultArticle
impl Unpin for InlineQueryResultArticle
impl UnsafeUnpin for InlineQueryResultArticle
impl UnwindSafe for InlineQueryResultArticle
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
Mutably borrows from an owned value. Read more