pub enum SlashCommandResponse {
Empty,
String(String),
Layouts(Layouts),
LayoutsInChannel(Layouts),
}Expand description
The response type for slash command. https://api.slack.com/interactivity/slash-commands#responding_to_commands
Variants§
Empty
no response
String(String)
as plain text
Layouts(Layouts)
complex response
LayoutsInChannel(Layouts)
complex response and in channel
Implementations§
Source§impl SlashCommandResponse
impl SlashCommandResponse
Sourcepub fn empty() -> Self
pub fn empty() -> Self
A short-hand to create SlashCommandResponse::Empty.
Sourcepub fn string(string: String) -> Self
pub fn string(string: String) -> Self
A short-hand to create SlashCommandResponse::String.
Trait Implementations§
Source§impl Clone for SlashCommandResponse
impl Clone for SlashCommandResponse
Source§fn clone(&self) -> SlashCommandResponse
fn clone(&self) -> SlashCommandResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlashCommandResponse
impl Debug for SlashCommandResponse
Auto Trait Implementations§
impl Freeze for SlashCommandResponse
impl RefUnwindSafe for SlashCommandResponse
impl Send for SlashCommandResponse
impl Sync for SlashCommandResponse
impl Unpin for SlashCommandResponse
impl UnwindSafe for SlashCommandResponse
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
Mutably borrows from an owned value. Read more