[][src]Trait ruma_api::Endpoint

pub trait Endpoint: Outgoing + TryInto<Request<Vec<u8>>, Error = IntoHttpError> where
    Self::Incoming: TryFrom<Request<Vec<u8>>, Error = FromHttpRequestError>,
    <Self::Response as Outgoing>::Incoming: TryFrom<Response<Vec<u8>>, Error = FromHttpResponseError>, 
{ type Response: Outgoing + TryInto<Response<Vec<u8>>, Error = IntoHttpError>; const METADATA: Metadata; }

A Matrix API endpoint.

The type implementing this trait contains any data needed to make a request to the endpoint.

Associated Types

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

Data returned in a successful response from the endpoint.

Loading content...

Associated Constants

const METADATA: Metadata

Metadata about the endpoint.

Loading content...

Implementors

Loading content...