pub struct FromDecoder<D, U> { /* private fields */ }Expand description
A decoder which maps the output of another with From::from.
Trait Implementations§
Source§impl<T, D, U> DecodeHeader<T> for FromDecoder<D, U>where
T: From<U>,
D: DecodeHeader<U>,
impl<T, D, U> DecodeHeader<T> for FromDecoder<D, U>where
T: From<U>,
D: DecodeHeader<U>,
Source§fn decode<'a, I>(runtime: &ConjureRuntime, headers: I) -> Result<T, Error>where
I: IntoIterator<Item = &'a HeaderValue>,
fn decode<'a, I>(runtime: &ConjureRuntime, headers: I) -> Result<T, Error>where
I: IntoIterator<Item = &'a HeaderValue>,
Decodes the value from headers.