pub struct InputInlineQueryResultArticle { /* private fields */ }
Expand description
Represents a link to an article or web page
Implementations§
Source§impl InputInlineQueryResultArticle
impl InputInlineQueryResultArticle
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> InputInlineQueryResultArticleBuilder
pub fn id(&self) -> &String
pub fn url(&self) -> &String
pub fn hide_url(&self) -> bool
pub fn title(&self) -> &String
pub fn description(&self) -> &String
pub fn thumbnail_url(&self) -> &String
pub fn thumbnail_width(&self) -> i32
pub fn thumbnail_height(&self) -> i32
pub fn reply_markup(&self) -> &ReplyMarkup
pub fn input_message_content(&self) -> &InputMessageContent
Trait Implementations§
Source§impl AsRef<InputInlineQueryResultArticle> for InputInlineQueryResultArticle
impl AsRef<InputInlineQueryResultArticle> for InputInlineQueryResultArticle
Source§fn as_ref(&self) -> &InputInlineQueryResultArticle
fn as_ref(&self) -> &InputInlineQueryResultArticle
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for InputInlineQueryResultArticle
impl Clone for InputInlineQueryResultArticle
Source§fn clone(&self) -> InputInlineQueryResultArticle
fn clone(&self) -> InputInlineQueryResultArticle
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 Default for InputInlineQueryResultArticle
impl Default for InputInlineQueryResultArticle
Source§fn default() -> InputInlineQueryResultArticle
fn default() -> InputInlineQueryResultArticle
Returns the “default value” for a type. Read more
Source§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
impl TDInputInlineQueryResult 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