pub trait Request: Serialize + DeserializeOwned {
    type Response: Serialize + DeserializeOwned;
    type Error: ApiError;

    const PATH: &'static str;
    const METHOD: Method;
    const SIZE_LIMIT: usize = 4_096usize;
    const TIMEOUT: usize = 60usize;
    const HEADERS: &'static [&'static str] = _;
}
Expand description

Basic request definition.

The request will be serialized and deserialized via Json to ease updating structures without breaking backwards compatibility.

Required Associated Types§

Required Associated Constants§

source

const PATH: &'static str

source

const METHOD: Method

Provided Associated Constants§

source

const SIZE_LIMIT: usize = 4_096usize

source

const TIMEOUT: usize = 60usize

source

const HEADERS: &'static [&'static str] = _

Object Safety§

This trait is not object safe.

Implementors§