[][src]Struct telebot::objects::InlineQueryResultArticle

pub struct InlineQueryResultArticle {
    pub kind: String,
    pub id: String,
    pub title: String,
    pub input_message_content: Box<dyn Serialize + Send>,
    pub reply_markup: Option<InlineKeyboardMarkup>,
    pub url: Option<String>,
    pub hide_url: Option<Boolean>,
    pub description: Option<String>,
    pub thumb_url: Option<String>,
    pub thumb_width: Option<Integer>,
    pub thumb_height: Option<Integer>,
}

Fields

kind: Stringid: Stringtitle: Stringinput_message_content: Box<dyn Serialize + Send>reply_markup: Option<InlineKeyboardMarkup>url: Option<String>hide_url: Option<Boolean>description: Option<String>thumb_url: Option<String>thumb_width: Option<Integer>thumb_height: Option<Integer>

Methods

impl InlineQueryResultArticle[src]

pub fn new(
    _title: String,
    _input_message_content: Box<dyn Serialize + Send>
) -> InlineQueryResultArticle
[src]

pub fn reply_markup<S>(self, val: S) -> Self where
    S: Into<InlineKeyboardMarkup>, 
[src]

pub fn url<S>(self, val: S) -> Self where
    S: Into<String>, 
[src]

pub fn hide_url<S>(self, val: S) -> Self where
    S: Into<Boolean>, 
[src]

pub fn description<S>(self, val: S) -> Self where
    S: Into<String>, 
[src]

pub fn thumb_url<S>(self, val: S) -> Self where
    S: Into<String>, 
[src]

pub fn thumb_width<S>(self, val: S) -> Self where
    S: Into<Integer>, 
[src]

pub fn thumb_height<S>(self, val: S) -> Self where
    S: Into<Integer>, 
[src]

Trait Implementations

impl Serialize for InlineQueryResultArticle[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]