Struct tg_flows::InlineQueryResultArticle
source · pub struct InlineQueryResultArticle {
pub id: String,
pub title: String,
pub input_message_content: InputMessageContent,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub url: Option<Url>,
pub hide_url: Option<bool>,
pub description: Option<String>,
pub thumb_url: Option<Url>,
pub thumb_width: Option<i32>,
pub thumb_height: Option<i32>,
}Expand description
Represents a link to an article or web page.
Fields§
§id: StringUnique identifier for this result, 1-64 Bytes.
title: StringTitle of the result.
input_message_content: InputMessageContentContent of the message to be sent.
reply_markup: Option<InlineKeyboardMarkup>Inline keyboard attached to the message.
url: Option<Url>URL of the result.
hide_url: Option<bool>Pass true, if you don’t want the URL to be shown in the
message.
description: Option<String>Short description of the result.
thumb_url: Option<Url>Url of the thumbnail for the result.
thumb_width: Option<i32>Thumbnail width.
thumb_height: Option<i32>Thumbnail height.
Implementations§
source§impl InlineQueryResultArticle
impl InlineQueryResultArticle
pub fn new<S1, S2>( id: S1, title: S2, input_message_content: InputMessageContent ) -> Selfwhere S1: Into<String>, S2: Into<String>,
pub fn id<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn title<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn input_message_content(self, val: InputMessageContent) -> Self
pub fn reply_markup(self, val: InlineKeyboardMarkup) -> Self
pub fn url(self, val: Url) -> Self
pub fn hide_url(self, val: bool) -> Self
pub fn description<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn thumb_url(self, val: Url) -> Self
pub fn thumb_width(self, val: i32) -> Self
pub fn thumb_height(self, val: i32) -> Self
Trait Implementations§
source§impl Clone for InlineQueryResultArticle
impl Clone for InlineQueryResultArticle
source§fn clone(&self) -> InlineQueryResultArticle
fn clone(&self) -> InlineQueryResultArticle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§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 InlineQueryResult
impl From<InlineQueryResultArticle> for InlineQueryResult
source§fn from(original: InlineQueryResultArticle) -> InlineQueryResult
fn from(original: InlineQueryResultArticle) -> InlineQueryResult
Converts to this type from the input type.
source§impl PartialEq<InlineQueryResultArticle> for InlineQueryResultArticle
impl PartialEq<InlineQueryResultArticle> for InlineQueryResultArticle
source§fn 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 ==.