pub struct InputInlineQueryResultArticle {
pub id: String,
pub url: String,
pub hide_url: bool,
pub title: String,
pub description: String,
pub thumbnail_url: String,
pub thumbnail_width: i32,
pub thumbnail_height: i32,
pub reply_markup: Option<ReplyMarkup>,
pub input_message_content: InputMessageContent,
}
Expand description
Represents a link to an article or web page
Fields§
§id: String
Unique identifier of the query result
url: String
URL of the result, if it exists
hide_url: bool
True, if the URL must be not shown
title: String
Title of the result
description: String
A short description of the result
thumbnail_url: String
URL of the result thumbnail, if it exists
thumbnail_width: i32
Thumbnail width, if known
thumbnail_height: i32
Thumbnail height, if known
reply_markup: Option<ReplyMarkup>
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null
input_message_content: InputMessageContent
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact
Trait Implementations§
Source§impl Clone for InputInlineQueryResultArticle
impl Clone for InputInlineQueryResultArticle
Source§fn clone(&self) -> InputInlineQueryResultArticle
fn clone(&self) -> InputInlineQueryResultArticle
Returns a duplicate 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<'de> Deserialize<'de> for InputInlineQueryResultArticle
impl<'de> Deserialize<'de> for InputInlineQueryResultArticle
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 PartialEq for InputInlineQueryResultArticle
impl PartialEq for InputInlineQueryResultArticle
Source§fn eq(&self, other: &InputInlineQueryResultArticle) -> bool
fn eq(&self, other: &InputInlineQueryResultArticle) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InputInlineQueryResultArticle
Auto Trait Implementations§
impl Freeze for InputInlineQueryResultArticle
impl RefUnwindSafe for InputInlineQueryResultArticle
impl Send for InputInlineQueryResultArticle
impl Sync for InputInlineQueryResultArticle
impl Unpin for InputInlineQueryResultArticle
impl UnwindSafe for InputInlineQueryResultArticle
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