Trait sfr_slack_api::Request

source ·
pub trait Request {
    type Response;

    // Required method
    fn request(
        self,
        client: &Client,
    ) -> impl Future<Output = Result<Self::Response, Error>> + Send;
}
Expand description

The type that represents a request for Slack API.

Required Associated Types§

source

type Response

The type that represents a request of chat.postMessage.

Required Methods§

source

fn request( self, client: &Client, ) -> impl Future<Output = Result<Self::Response, Error>> + Send

Requests to the API that represents this type.

Object Safety§

This trait is not object safe.

Implementors§