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, ) -> Self
pub fn id<S>(self, val: S) -> Self
pub fn title<S>(self, val: S) -> Self
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) -> Self
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 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 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 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more