Trait conjure_http::client::AsyncDeserializeResponse

source ·
pub trait AsyncDeserializeResponse<T, R> {
    // Required methods
    fn accept() -> Option<HeaderValue>;
    fn deserialize(
        response: Response<R>,
    ) -> impl Future<Output = Result<T, Error>> + Send;
}
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( response: Response<R>, ) -> impl Future<Output = Result<T, Error>> + Send

Deserializes the response.

Object Safety§

This trait is not object safe.

Implementors§