pub enum SerializerKind {
Raw(SerializerFn),
Context(ContextSerializerFn),
}Expand description
Which serializer variant is registered for an outbound link
Enforces mutual exclusivity between raw value-only serializers and context-aware serializers.
Variants§
Raw(SerializerFn)
Plain value-only serializer (from .with_serializer_raw())
Context(ContextSerializerFn)
Context-aware serializer (from .with_serializer())
Trait Implementations§
Source§impl Clone for SerializerKind
impl Clone for SerializerKind
Source§fn clone(&self) -> SerializerKind
fn clone(&self) -> SerializerKind
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 SerializerKind
impl !RefUnwindSafe for SerializerKind
impl Send for SerializerKind
impl Sync for SerializerKind
impl Unpin for SerializerKind
impl UnsafeUnpin for SerializerKind
impl !UnwindSafe for SerializerKind
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