Trait conjure_http::client::AsyncDeserializeResponse
source · 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§
sourcefn accept() -> Option<HeaderValue>
fn accept() -> Option<HeaderValue>
Returns the value of the Accept header to be included in the request.