sfr_slack_api/
request.rs

1//! The type that represents a request for Slack API.
2
3use sfr_types as st;
4
5use crate::Client;
6
7/// The type that represents a request for Slack API.
8pub trait Request {
9    /// The type that represents a request of `chat.postMessage`.
10    type Response;
11
12    /// Requests to the API that represents this type.
13    fn request(
14        self,
15        client: &Client,
16    ) -> impl std::future::Future<Output = Result<Self::Response, st::Error>> + Send;
17}