pub struct AsRefEncoder<D, U> { /* private fields */ }Expand description
An encoder which delegates to another with AsRef::as_ref.
Trait Implementations§
Source§impl<T, D, U> EncodeHeader<T> for AsRefEncoder<D, U>
impl<T, D, U> EncodeHeader<T> for AsRefEncoder<D, U>
Source§fn encode(runtime: &ConjureRuntime, value: T) -> Result<Vec<HeaderValue>, Error>
fn encode(runtime: &ConjureRuntime, value: T) -> Result<Vec<HeaderValue>, Error>
Encodes the value into headers. Read more