pub trait DeserializeResponse<T, R> {
    // Required methods
    fn accept() -> Option<HeaderValue>;
    fn deserialize(response: Response<R>) -> Result<T, Error>;
}
Expand description

A trait implemented by response deserializers used by custom Conjure client trait implementations.

Required Methods§

source

fn accept() -> Option<HeaderValue>

Returns the value of the Accept header to be included in the request.

source

fn deserialize(response: Response<R>) -> Result<T, Error>

Deserializes the response.

Object Safety§

This trait is not object safe.

Implementors§