Enum rust_tdlib::types::KeyboardButtonType [−][src]
pub enum KeyboardButtonType { RequestLocation(KeyboardButtonTypeRequestLocation), RequestPhoneNumber(KeyboardButtonTypeRequestPhoneNumber), RequestPoll(KeyboardButtonTypeRequestPoll), Text(KeyboardButtonTypeText), // some variants omitted }
Expand description
Describes a keyboard button type
Variants
RequestLocation(KeyboardButtonTypeRequestLocation)
A button that sends the user’s location when pressed; available only in private chats
RequestPhoneNumber(KeyboardButtonTypeRequestPhoneNumber)
A button that sends the user’s phone number when pressed; available only in private chats
RequestPoll(KeyboardButtonTypeRequestPoll)
A button that allows the user to create and send a poll when pressed; available only in private chats
Text(KeyboardButtonTypeText)
A simple button, with text that should be sent when the button is pressed
Implementations
Trait Implementations
Performs the conversion.
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
Auto Trait Implementations
impl RefUnwindSafe for KeyboardButtonType
impl Send for KeyboardButtonType
impl Sync for KeyboardButtonType
impl Unpin for KeyboardButtonType
impl UnwindSafe for KeyboardButtonType
Blanket Implementations
Mutably borrows from an owned value. Read more