pub enum SlackInteractionResponse {
Empty,
ViewSubmission(SlackViewSubmissionResponse),
BlockSuggestion(SlackBlockSuggestionResponse),
}Expand description
What an interaction handler hands back to Slack.
A single handler can answer every kind of SlackInteractionEvent with this:
options for block_suggestion, a response_action for view_submission,
and a plain acknowledgement for everything else.
SlackInteractionResponse::Empty has no wire representation: transports turn it
into an empty HTTP 200 or a bare Socket Mode acknowledgement, and serialising it
directly is an error rather than a silent null.
Variants§
Trait Implementations§
Source§impl Clone for SlackInteractionResponse
impl Clone for SlackInteractionResponse
Source§fn clone(&self) -> SlackInteractionResponse
fn clone(&self) -> SlackInteractionResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SlackInteractionResponse
impl Debug for SlackInteractionResponse
Source§impl<'de> Deserialize<'de> for SlackInteractionResponse
impl<'de> Deserialize<'de> for SlackInteractionResponse
Source§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
Source§impl From<()> for SlackInteractionResponse
impl From<()> for SlackInteractionResponse
Source§impl From<SlackBlockSuggestionResponse> for SlackInteractionResponse
impl From<SlackBlockSuggestionResponse> for SlackInteractionResponse
Source§fn from(response: SlackBlockSuggestionResponse) -> Self
fn from(response: SlackBlockSuggestionResponse) -> Self
Converts to this type from the input type.
Source§impl From<SlackViewSubmissionResponse> for SlackInteractionResponse
impl From<SlackViewSubmissionResponse> for SlackInteractionResponse
Source§fn from(response: SlackViewSubmissionResponse) -> Self
fn from(response: SlackViewSubmissionResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackInteractionResponse
impl PartialEq for SlackInteractionResponse
Source§impl Serialize for SlackInteractionResponse
impl Serialize for SlackInteractionResponse
impl StructuralPartialEq for SlackInteractionResponse
Auto Trait Implementations§
impl Freeze for SlackInteractionResponse
impl RefUnwindSafe for SlackInteractionResponse
impl Send for SlackInteractionResponse
impl Sync for SlackInteractionResponse
impl Unpin for SlackInteractionResponse
impl UnsafeUnpin for SlackInteractionResponse
impl UnwindSafe for SlackInteractionResponse
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