Struct telegram_bot_api::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<String>,
pub hide_url: Option<bool>,
pub description: Option<String>,
pub thumb_url: Option<String>,
pub thumb_width: Option<i64>,
pub thumb_height: Option<i64>,
}
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>
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
thumb_url: Option<String>
Optional. Url of the thumbnail for the result
thumb_width: Option<i64>
Optional. Thumbnail width
thumb_height: Option<i64>
Optional. Thumbnail height
Implementations
sourceimpl InlineQueryResultArticle
impl InlineQueryResultArticle
pub fn new(
id: String,
title: String,
input_message_content: InputMessageContent
) -> Self
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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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 Serialize for InlineQueryResultArticle
impl Serialize 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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