Struct sfr_core::SlashCommandBody
source · pub struct SlashCommandBody {Show 15 fields
pub token: String,
pub command: String,
pub text: String,
pub response_url: String,
pub trigger_id: String,
pub user_id: String,
pub user_name: String,
pub team_id: String,
pub team_domain: String,
pub enterprise_id: Option<String>,
pub enterprise_name: Option<String>,
pub channel_id: String,
pub channel_name: String,
pub api_app_id: String,
pub is_enterprise_install: bool,
}Expand description
The type that represents a request of a slash command.
https://api.slack.com/interactivity/slash-commands#app_command_handling
Fields§
§token: String(Deprecated) This is a verification token, a deprecated feature that you shouldn’t use any more.
command: StringThe command that was entered to trigger this request.
text: StringThis is the part of the slash command after the command itself, and it can contain absolutely anything the user might decide to type.
response_url: StringA temporary webhook URL that you can use to generate message responses.
trigger_id: StringA short-lived ID that will allow your app to open a modal.
user_id: StringThe ID of the user who triggered the command.
user_name: String(Deprecated) The plain text name of the user who triggered the command.
team_id: StringThese IDs provide context about where the user was in Slack when they triggered your app’s command (e.g. the workspace, Enterprise Grid, or channel).
team_domain: String(Deprecated)
enterprise_id: Option<String>These IDs provide context about where the user was in Slack when they triggered your app’s command (e.g. the workspace, Enterprise Grid, or channel).
enterprise_name: Option<String>(Deprecated)
channel_id: StringThese IDs provide context about where the user was in Slack when they triggered your app’s command (e.g. the workspace, Enterprise Grid, or channel).
channel_name: String(Deprecated)
api_app_id: StringYour Slack app’s unique identifier.
is_enterprise_install: boolis_enterprise_install
Trait Implementations§
source§impl Clone for SlashCommandBody
impl Clone for SlashCommandBody
source§fn clone(&self) -> SlashCommandBody
fn clone(&self) -> SlashCommandBody
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SlashCommandBody
impl Debug for SlashCommandBody
source§impl<'de> Deserialize<'de> for SlashCommandBody
impl<'de> Deserialize<'de> for SlashCommandBody
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SlashCommandBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SlashCommandBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for SlashCommandBody
impl RefUnwindSafe for SlashCommandBody
impl Send for SlashCommandBody
impl Sync for SlashCommandBody
impl Unpin for SlashCommandBody
impl UnwindSafe for SlashCommandBody
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)