#[non_exhaustive]pub enum DeserializeVariantContent {
Omitted,
Fields(Vec<DeserializeFieldShape>),
Shape(ShapeRef),
Custom(OpaqueShape),
}Expand description
The deserialized content controlled by an enum variant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Omitted
The variant is omitted during deserialization.
Fields(Vec<DeserializeFieldShape>)
Serde derives the variant content from these fields.
Shape(ShapeRef)
A serde_shape hook supplies the content shape inside the enum’s tagging representation.
Custom(OpaqueShape)
A custom deserializer controls the variant content.
Trait Implementations§
Source§impl Clone for DeserializeVariantContent
impl Clone for DeserializeVariantContent
Source§fn clone(&self) -> DeserializeVariantContent
fn clone(&self) -> DeserializeVariantContent
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 moreSource§impl Debug for DeserializeVariantContent
impl Debug for DeserializeVariantContent
impl Eq for DeserializeVariantContent
impl StructuralPartialEq for DeserializeVariantContent
Auto Trait Implementations§
impl Freeze for DeserializeVariantContent
impl RefUnwindSafe for DeserializeVariantContent
impl Send for DeserializeVariantContent
impl Sync for DeserializeVariantContent
impl Unpin for DeserializeVariantContent
impl UnsafeUnpin for DeserializeVariantContent
impl UnwindSafe for DeserializeVariantContent
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