[−][src]Enum rtdlib::types::ReplyMarkup
Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots
Variants
ForceReply(ReplyMarkupForceReply)
Instructs clients to force a reply to this message
InlineKeyboard(ReplyMarkupInlineKeyboard)
Contains an inline keyboard layout
RemoveKeyboard(ReplyMarkupRemoveKeyboard)
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
ShowKeyboard(ReplyMarkupShowKeyboard)
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]
&self,
fnc: F
) -> &Self
pub fn on_remove_keyboard<F: FnOnce(&ReplyMarkupRemoveKeyboard)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_show_keyboard<F: FnOnce(&ReplyMarkupShowKeyboard)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
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]
fn as_ref(&self) -> &ReplyMarkup
[src]
impl Clone for ReplyMarkup
[src]
fn clone(&self) -> ReplyMarkup
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReplyMarkup
[src]
impl Default for ReplyMarkup
[src]
impl<'de> Deserialize<'de> for ReplyMarkup
[src]
fn deserialize<D>(deserializer: D) -> Result<ReplyMarkup, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for ReplyMarkup
[src]
impl Serialize for ReplyMarkup
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReplyMarkup
impl Send for ReplyMarkup
impl Sync for ReplyMarkup
impl Unpin for ReplyMarkup
impl UnwindSafe for ReplyMarkup
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,