Request

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§