Enum rust_tdlib::types::ReplyMarkup
source · [−]pub enum ReplyMarkup {
ForceReply(ReplyMarkupForceReply),
InlineKeyboard(ReplyMarkupInlineKeyboard),
RemoveKeyboard(ReplyMarkupRemoveKeyboard),
ShowKeyboard(ReplyMarkupShowKeyboard),
// some variants omitted
}Expand description
Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots
Variants
ForceReply(ReplyMarkupForceReply)
Instructs application to force a reply to this message
InlineKeyboard(ReplyMarkupInlineKeyboard)
Contains an inline keyboard layout
RemoveKeyboard(ReplyMarkupRemoveKeyboard)
Instructs application 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
Trait Implementations
sourceimpl AsRef<ReplyMarkup> for ReplyMarkup
impl AsRef<ReplyMarkup> for ReplyMarkup
sourcefn as_ref(&self) -> &ReplyMarkup
fn as_ref(&self) -> &ReplyMarkup
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ReplyMarkup
impl Clone for ReplyMarkup
sourcefn clone(&self) -> ReplyMarkup
fn clone(&self) -> ReplyMarkup
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ReplyMarkup
impl Debug for ReplyMarkup
sourceimpl Default for ReplyMarkup
impl Default for ReplyMarkup
sourceimpl<'de> Deserialize<'de> for ReplyMarkup
impl<'de> Deserialize<'de> for ReplyMarkup
sourcefn 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
sourceimpl Serialize for ReplyMarkup
impl Serialize for ReplyMarkup
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more