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, ) -> 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 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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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