pub enum FromPlainOptionDecoder {}Expand description
A decoder which converts an optional value using its FromPlain implementation.
Trait Implementations§
Source§impl<T> DecodeHeader<Option<T>> for FromPlainOptionDecoder
impl<T> DecodeHeader<Option<T>> for FromPlainOptionDecoder
Source§fn decode<'a, I>(_: &ConjureRuntime, headers: I) -> Result<Option<T>, Error>where
I: IntoIterator<Item = &'a HeaderValue>,
fn decode<'a, I>(_: &ConjureRuntime, headers: I) -> Result<Option<T>, Error>where
I: IntoIterator<Item = &'a HeaderValue>,
Decodes the value from headers.
Source§impl<T> DecodeParam<Option<T>> for FromPlainOptionDecoder
impl<T> DecodeParam<Option<T>> for FromPlainOptionDecoder
Auto Trait Implementations§
impl Freeze for FromPlainOptionDecoder
impl RefUnwindSafe for FromPlainOptionDecoder
impl Send for FromPlainOptionDecoder
impl Sync for FromPlainOptionDecoder
impl Unpin for FromPlainOptionDecoder
impl UnwindSafe for FromPlainOptionDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more