pub trait Request: Serialize {
    type Response: DeserializeOwned;

    const ENDPOINT: &'static str;
}
Expand description

API request.

Request type is Serialize with associated response type Response and endpoint name ENDPOINT.

Required Associated Types

Response type of this request.

Required Associated Constants

The name of the corresponding endpoint.

Implementations on Foreign Types

Implementors