[][src]Trait ruma_api::Endpoint

pub trait Endpoint {
    type Request: TryFrom<Request<Vec<u8>>, Error = Error> + TryInto<Request<Vec<u8>>, Error = Error>;
    type Response: TryFrom<Response<Vec<u8>>, Error = Error> + TryInto<Response<Vec<u8>>, Error = Error>;

    const METADATA: Metadata;
}

A Matrix API endpoint.

Associated Types

type Request: TryFrom<Request<Vec<u8>>, Error = Error> + TryInto<Request<Vec<u8>>, Error = Error>

Data needed to make a request to the endpoint.

type Response: TryFrom<Response<Vec<u8>>, Error = Error> + TryInto<Response<Vec<u8>>, Error = Error>

Data returned from the endpoint.

Loading content...

Associated Constants

const METADATA: Metadata

Metadata about the endpoint.

Loading content...

Implementors

Loading content...