slack-morphism 2.29.0

Slack Morphism is a modern client library for Slack Web/Events API/Socket Mode and Block Kit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::events::SlackInteractionResponse;
use axum::http::StatusCode;
use axum::response::{IntoResponse, Response};

impl IntoResponse for SlackInteractionResponse {
    fn into_response(self) -> Response {
        match self {
            SlackInteractionResponse::Empty => StatusCode::OK.into_response(),
            payload => axum::Json(payload).into_response(),
        }
    }
}