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§
sourcefn accept() -> Option<HeaderValue>
fn accept() -> Option<HeaderValue>
Returns the value of the Accept header to be included in the request.
Object Safety§
This trait is not object safe.