[][src]Enum rtdlib::types::ReplyMarkup

pub enum ReplyMarkup {
    ForceReply(ReplyMarkupForceReply),
    InlineKeyboard(ReplyMarkupInlineKeyboard),
    RemoveKeyboard(ReplyMarkupRemoveKeyboard),
    ShowKeyboard(ReplyMarkupShowKeyboard),
    // some variants omitted
}

Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots

Variants

Instructs clients to force a reply to this message

Contains an inline keyboard layout

Instructs clients to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, UpdateChatReplyMarkup with message_id == 0 will be sent

Contains a custom keyboard layout to quickly reply to bots

Implementations

impl ReplyMarkup[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn is_force_reply(&self) -> bool[src]

pub fn is_inline_keyboard(&self) -> bool[src]

pub fn is_remove_keyboard(&self) -> bool[src]

pub fn is_show_keyboard(&self) -> bool[src]

pub fn on_force_reply<F: FnOnce(&ReplyMarkupForceReply)>(&self, fnc: F) -> &Self[src]

pub fn on_inline_keyboard<F: FnOnce(&ReplyMarkupInlineKeyboard)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_remove_keyboard<F: FnOnce(&ReplyMarkupRemoveKeyboard)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_show_keyboard<F: FnOnce(&ReplyMarkupShowKeyboard)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn as_force_reply(&self) -> Option<&ReplyMarkupForceReply>[src]

pub fn as_inline_keyboard(&self) -> Option<&ReplyMarkupInlineKeyboard>[src]

pub fn as_remove_keyboard(&self) -> Option<&ReplyMarkupRemoveKeyboard>[src]

pub fn as_show_keyboard(&self) -> Option<&ReplyMarkupShowKeyboard>[src]

pub fn force_reply<T: AsRef<ReplyMarkupForceReply>>(t: T) -> Self[src]

pub fn inline_keyboard<T: AsRef<ReplyMarkupInlineKeyboard>>(t: T) -> Self[src]

pub fn remove_keyboard<T: AsRef<ReplyMarkupRemoveKeyboard>>(t: T) -> Self[src]

pub fn show_keyboard<T: AsRef<ReplyMarkupShowKeyboard>>(t: T) -> Self[src]

Trait Implementations

impl AsRef<ReplyMarkup> for ReplyMarkup[src]

impl Clone for ReplyMarkup[src]

impl Debug for ReplyMarkup[src]

impl Default for ReplyMarkup[src]

impl<'de> Deserialize<'de> for ReplyMarkup[src]

impl RObject for ReplyMarkup[src]

impl Serialize for ReplyMarkup[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.