Enum rtdlib::types::InlineKeyboardButtonType[][src]

pub enum InlineKeyboardButtonType {
    Buy(InlineKeyboardButtonTypeBuy),
    Callback(InlineKeyboardButtonTypeCallback),
    CallbackGame(InlineKeyboardButtonTypeCallbackGame),
    LoginUrl(InlineKeyboardButtonTypeLoginUrl),
    SwitchInline(InlineKeyboardButtonTypeSwitchInline),
    Url(InlineKeyboardButtonTypeUrl),
    // some variants omitted
}
Expand description

Describes the type of an inline keyboard button

Variants

Buy

A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice

Tuple Fields of Buy

0: InlineKeyboardButtonTypeBuy
Callback

A button that sends a special callback query to a bot

Tuple Fields of Callback

0: InlineKeyboardButtonTypeCallback
CallbackGame

A button with a game that sends a special callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame

Tuple Fields of CallbackGame

0: InlineKeyboardButtonTypeCallbackGame
LoginUrl

A button that opens a specified URL and automatically logs in in current user if they allowed to do that

Tuple Fields of LoginUrl

0: InlineKeyboardButtonTypeLoginUrl
SwitchInline

A button that forces an inline query to the bot to be inserted in the input field

Tuple Fields of SwitchInline

0: InlineKeyboardButtonTypeSwitchInline
Url

A button that opens a specified URL

Tuple Fields of Url

0: InlineKeyboardButtonTypeUrl

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.