pub trait AsyncDeserializeResponse<T, R> {
    // Required methods
    fn accept() -> Option<HeaderValue>;
    fn deserialize<'async_trait>(
        response: Response<R>
    ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>;
}
Expand description

A trait implemented by response deserializers used by custom async 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<'async_trait>( response: Response<R> ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>

Deserializes the response.

Implementors§