Struct teloxide::types::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: String
Unique identifier for this result, 1-64 Bytes.
title: String
Title of the result.
input_message_content: InputMessageContent
Content 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
) -> InlineQueryResultArticlewhere
S1: Into<String>,
S2: Into<String>,
pub fn id<S>(self, val: S) -> InlineQueryResultArticlewhere
S: Into<String>,
pub fn title<S>(self, val: S) -> InlineQueryResultArticlewhere
S: Into<String>,
pub fn input_message_content(
self,
val: InputMessageContent
) -> InlineQueryResultArticle
pub fn reply_markup(self, val: InlineKeyboardMarkup) -> InlineQueryResultArticle
pub fn url(self, val: Url) -> InlineQueryResultArticle
pub fn hide_url(self, val: bool) -> InlineQueryResultArticle
pub fn description<S>(self, val: S) -> InlineQueryResultArticlewhere
S: Into<String>,
pub fn thumb_url(self, val: Url) -> InlineQueryResultArticle
pub fn thumb_width(self, val: i32) -> InlineQueryResultArticle
pub fn thumb_height(self, val: i32) -> InlineQueryResultArticle
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<InlineQueryResultArticle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InlineQueryResultArticle, <__D as Deserializer<'de>>::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 ==
.source§impl Serialize for InlineQueryResultArticle
impl Serialize for InlineQueryResultArticle
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more