Struct egg_mode::direct::QuickReply[][src]

pub struct QuickReply {
    pub label: String,
    pub description: Option<String>,
    pub metadata: String,
}
Expand description

A Quick Reply attached to a message to request structured input from a user.

For more information about Quick Replies, see the quick_reply_option function on DraftMessage.

Fields

label: String

The label shown to the user. When the user selects this Quick Reply, the label will be sent as the text of the reply message.

description: Option<String>

An optional description that accompanies a Quick Reply.

metadata: String

Metadata that accompanies this Quick Reply. Metadata is not shown to the user, but is available in the quick_reply_response when the user selects it.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

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.