Struct slack_chat_api::BotCommand[][src]

pub struct BotCommand {
    pub user_name: String,
    pub command: String,
    pub text: String,
    pub api_app_id: String,
    pub response_url: String,
    pub trigger_id: String,
    pub channel_name: String,
    pub team_domain: String,
    pub team_id: String,
    pub token: String,
    pub channel_id: String,
    pub user_id: String,
}
Expand description

A bot command to be run and sent back to Slack.

Docs: https://api.slack.com/interactivity/slash-commands#app_command_handling

Fields

user_name: Stringcommand: Stringtext: Stringapi_app_id: Stringresponse_url: Stringtrigger_id: Stringchannel_name: Stringteam_domain: Stringteam_id: Stringtoken: Stringchannel_id: Stringuser_id: String

Trait Implementations

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

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.

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.