pub trait ParseStrictResponse {
    type Output;

    // Required method
    fn parse(&self, response: &Response<Bytes>) -> Self::Output;

    // Provided method
    fn sensitive(&self) -> bool { ... }
}
Expand description

Convenience Trait for non-streaming APIs

ParseStrictResponse enables operations that never need to stream the body incrementally to have cleaner implementations. There is a blanket implementation

Required Associated Types§

source

type Output

The type returned by this parser.

Required Methods§

source

fn parse(&self, response: &Response<Bytes>) -> Self::Output

Parse an http::Response<Bytes> into Self::Output.

Provided Methods§

source

fn sensitive(&self) -> bool

Returns whether the contents of this response are sensitive

When this is set to true, wire logging will be disabled

Implementors§