pub struct VariantShape {
pub rust_name: &'static str,
pub deserialize_name: &'static str,
pub deserialize_aliases: Vec<&'static str>,
pub style: FieldsStyle,
pub fields: Vec<FieldShape>,
pub skip_deserializing: bool,
pub custom_deserializer: bool,
pub other: bool,
pub untagged: bool,
}Expand description
Variant-level shape metadata.
Fields§
§rust_name: &'static strThe original Rust variant name.
deserialize_name: &'static strThe primary Serde deserialize name.
deserialize_aliases: Vec<&'static str>All accepted Serde deserialize names, including the primary name.
style: FieldsStyleThe variant field style.
fields: Vec<FieldShape>The variant fields, if their input shape can be inferred.
skip_deserializing: boolWhether Serde skips this variant during deserialization.
custom_deserializer: boolWhether this variant uses a custom deserializer.
other: boolWhether this is a Serde other catch-all variant.
untagged: boolWhether this variant is individually marked untagged.
Trait Implementations§
Source§impl Clone for VariantShape
impl Clone for VariantShape
Source§fn clone(&self) -> VariantShape
fn clone(&self) -> VariantShape
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 VariantShape
impl Debug for VariantShape
impl Eq for VariantShape
Source§impl PartialEq for VariantShape
impl PartialEq for VariantShape
Source§fn eq(&self, other: &VariantShape) -> bool
fn eq(&self, other: &VariantShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VariantShape
Auto Trait Implementations§
impl Freeze for VariantShape
impl RefUnwindSafe for VariantShape
impl Send for VariantShape
impl Sync for VariantShape
impl Unpin for VariantShape
impl UnsafeUnpin for VariantShape
impl UnwindSafe for VariantShape
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