[][src]Trait ruma_api::Endpoint

A Matrix API endpoint.

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

Associated Types

type Response: TryInto<Response<Vec<u8>>, Error = IntoHttpError> + TryFrom<Response<Vec<u8>>, Error = FromHttpResponseError<Self::ResponseError>>

Data returned in a successful response from the endpoint.

type ResponseError: EndpointError

Error type returned when response from endpoint fails.

Loading content...

Associated Constants

const METADATA: Metadata

Metadata about the endpoint.

Loading content...

Implementors

Loading content...