pub struct DeserializeVariantShape {
pub rust_name: &'static str,
pub name: &'static str,
pub aliases: Vec<&'static str>,
pub description: Option<&'static str>,
pub style: FieldsStyle,
pub content: DeserializeVariantContent,
pub other: bool,
pub untagged: bool,
}Expand description
Variant-level deserialization metadata.
Fields§
§rust_name: &'static strThe original Rust variant name.
name: &'static strThe primary Serde deserialize name.
aliases: Vec<&'static str>All accepted Serde deserialize names, including the primary name.
description: Option<&'static str>User-facing documentation for this variant, if available.
style: FieldsStyleThe variant field style.
content: DeserializeVariantContentHow the variant contributes its deserialized content.
other: boolWhether this is a Serde other catch-all variant.
untagged: boolWhether this variant is individually marked untagged.
Trait Implementations§
Source§impl Clone for DeserializeVariantShape
impl Clone for DeserializeVariantShape
Source§fn clone(&self) -> DeserializeVariantShape
fn clone(&self) -> DeserializeVariantShape
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 DeserializeVariantShape
impl Debug for DeserializeVariantShape
impl Eq for DeserializeVariantShape
Source§impl PartialEq for DeserializeVariantShape
impl PartialEq for DeserializeVariantShape
impl StructuralPartialEq for DeserializeVariantShape
Auto Trait Implementations§
impl Freeze for DeserializeVariantShape
impl RefUnwindSafe for DeserializeVariantShape
impl Send for DeserializeVariantShape
impl Sync for DeserializeVariantShape
impl Unpin for DeserializeVariantShape
impl UnsafeUnpin for DeserializeVariantShape
impl UnwindSafe for DeserializeVariantShape
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