Enum rtdlib::types::KeyboardButtonType [−][src]
pub enum KeyboardButtonType {
RequestLocation(KeyboardButtonTypeRequestLocation),
RequestPhoneNumber(KeyboardButtonTypeRequestPhoneNumber),
Text(KeyboardButtonTypeText),
// some variants omitted
}
Expand description
Describes a keyboard button type
Variants
A button that sends the user’s location when pressed; available only in private chats
Tuple Fields of RequestLocation
A button that sends the user’s phone number when pressed; available only in private chats
Tuple Fields of RequestPhoneNumber
A simple button, with text that should be sent when the button is pressed
Tuple Fields of Text
Implementations
pub fn on_request_location<F: FnOnce(&KeyboardButtonTypeRequestLocation)>(
&self,
fnc: F
) -> &Self
pub fn on_request_phone_number<F: FnOnce(&KeyboardButtonTypeRequestPhoneNumber)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<KeyboardButtonType, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<KeyboardButtonType, 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