Expand description

Describes the type of an inline keyboard button

Variants

Buy(InlineKeyboardButtonTypeBuy)

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

Callback(InlineKeyboardButtonTypeCallback)

A button that sends a callback query to a bot

CallbackGame(InlineKeyboardButtonTypeCallbackGame)

A button with a game that sends a 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

CallbackWithPassword(InlineKeyboardButtonTypeCallbackWithPassword)

A button that asks for password of the current user and then sends a callback query to a bot

LoginUrl(InlineKeyboardButtonTypeLoginUrl)

A button that opens a specified URL and automatically authorize the current user if allowed to do so

SwitchInline(InlineKeyboardButtonTypeSwitchInline)

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

Url(InlineKeyboardButtonTypeUrl)

A button that opens a specified URL

User(InlineKeyboardButtonTypeUser)

A button with a user reference to be handled in the same way as textEntityTypeMentionName entities

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)

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.