1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The type that represents a request for Slack API.

use sfr_types as st;

use crate::Client;

/// The type that represents a request for Slack API.
pub trait Request {
    /// The type that represents a request of `chat.postMessage`.
    type Response;

    /// Requests to the API that represents this type.
    fn request(
        self,
        client: &Client,
    ) -> impl std::future::Future<Output = Result<Self::Response, st::Error>> + Send;
}