pub trait DecodeHeader<T> {
// Required method
fn decode<'a, I>(runtime: &ConjureRuntime, headers: I) -> Result<T, Error>
where I: IntoIterator<Item = &'a HeaderValue>;
}Expand description
A trait implemented by header decoders used by custom Conjure server trait implementations.
Required Methods§
Sourcefn 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".