[][src]Struct slack_chat_api::BotCommand

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,
}

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

impl Debug for BotCommand[src]

impl Default for BotCommand[src]

impl<'de> Deserialize<'de> for BotCommand[src]

impl Serialize for BotCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.