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: StringTrait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BotCommand
impl Send for BotCommand
impl Sync for BotCommand
impl Unpin for BotCommand
impl UnwindSafe for BotCommand
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more