Trait ruma_api::Endpoint [] [src]

pub trait Endpoint<T, U> {
    type Request: TryInto<Request<T>, Error = Error>;
    type Response: FutureFrom<Response<U>, Error = Error>;

    const METADATA: Metadata;
}

A Matrix API endpoint.

Associated Types

Data needed to make a request to the endpoint.

Data returned from the endpoint.

Associated Constants

Metadata about the endpoint.

Implementors