[][src]Struct telebot::objects::InlineQueryResultCachedMpeg4Gif

pub struct InlineQueryResultCachedMpeg4Gif {
    pub kind: String,
    pub id: String,
    pub mpeg4_file_id: String,
    pub title: Option<String>,
    pub caption: Option<String>,
    pub reply_markup: Option<InlineKeyboardMarkup>,
    pub input_message_content: Option<Box<dyn Serialize + Send>>,
}

Fields

kind: Stringid: Stringmpeg4_file_id: Stringtitle: Option<String>caption: Option<String>reply_markup: Option<InlineKeyboardMarkup>input_message_content: Option<Box<dyn Serialize + Send>>

Methods

impl InlineQueryResultCachedMpeg4Gif[src]

pub fn new(_mpeg4_file_id: String) -> InlineQueryResultCachedMpeg4Gif[src]

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

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

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

pub fn input_message_content<S>(self, val: S) -> Self where
    S: Into<Box<dyn Serialize + Send>>, 
[src]

Trait Implementations

impl Serialize for InlineQueryResultCachedMpeg4Gif[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]