pub enum DeserializerKind {
Raw(DeserializerFn),
Context(ContextDeserializerFn),
}Expand description
Which deserializer variant is registered for an inbound link
Enforces mutual exclusivity between raw bytes-only deserializers and context-aware deserializers.
Variants§
Raw(DeserializerFn)
Plain bytes-only deserializer (from .with_deserializer_raw())
Context(ContextDeserializerFn)
Context-aware deserializer (from .with_deserializer())
Trait Implementations§
Source§impl Clone for DeserializerKind
impl Clone for DeserializerKind
Source§fn clone(&self) -> DeserializerKind
fn clone(&self) -> DeserializerKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeserializerKind
impl !RefUnwindSafe for DeserializerKind
impl Send for DeserializerKind
impl Sync for DeserializerKind
impl Unpin for DeserializerKind
impl UnsafeUnpin for DeserializerKind
impl !UnwindSafe for DeserializerKind
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