Trait glitch_in_the_matrix::request::ApiType [] [src]

pub trait ApiType {
    fn get_path<'a>(&'a self) -> Cow<'a, str>;
}

Describes the type of a Matrix API.

Required Methods

Get the base path which all requests to this API should contain.

For example, ClientApi, the struct for the client-server API, sets this method to return /_matrix/client/r0

Implementors