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§
source§impl AsRef<ReplyMarkup> for ReplyMarkup
impl AsRef<ReplyMarkup> for ReplyMarkup
source§fn as_ref(&self) -> &ReplyMarkup
fn as_ref(&self) -> &ReplyMarkup
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ReplyMarkup
impl Clone for ReplyMarkup
source§fn clone(&self) -> ReplyMarkup
fn clone(&self) -> ReplyMarkup
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReplyMarkup
impl Debug for ReplyMarkup
source§impl Default for ReplyMarkup
impl Default for ReplyMarkup
source§fn default() -> ReplyMarkup
fn default() -> ReplyMarkup
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ReplyMarkup
impl<'de> Deserialize<'de> for ReplyMarkup
source§fn 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