[][src]Enum rtdlib::types::KeyboardButtonType

pub enum KeyboardButtonType {
    RequestLocation(KeyboardButtonTypeRequestLocation),
    RequestPhoneNumber(KeyboardButtonTypeRequestPhoneNumber),
    RequestPoll(KeyboardButtonTypeRequestPoll),
    Text(KeyboardButtonTypeText),
    // some variants omitted
}

Describes a keyboard button type

Variants

A button that sends the user's location when pressed; available only in private chats

A button that sends the user's phone number when pressed; available only in private chats

A button that allows the user to create and send a poll when pressed; available only in private chats

A simple button, with text that should be sent when the button is pressed

Implementations

impl KeyboardButtonType[src]

Trait Implementations

impl AsRef<KeyboardButtonType> for KeyboardButtonType[src]

impl Clone for KeyboardButtonType[src]

impl Debug for KeyboardButtonType[src]

impl Default for KeyboardButtonType[src]

impl<'de> Deserialize<'de> for KeyboardButtonType[src]

impl RObject for KeyboardButtonType[src]

impl Serialize for KeyboardButtonType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.