pub struct SerializeVariantShape {
pub rust_name: &'static str,
pub name: &'static str,
pub description: Option<&'static str>,
pub style: FieldsStyle,
pub content: SerializeVariantContent,
pub untagged: bool,
}Expand description
Variant-level serialization metadata.
Fields§
§rust_name: &'static strThe original Rust variant name.
name: &'static strThe primary Serde serialize name.
description: Option<&'static str>User-facing documentation for this variant, if available.
style: FieldsStyleThe variant field style.
content: SerializeVariantContentHow the variant contributes its serialized content.
untagged: boolWhether this variant is individually marked untagged.
Trait Implementations§
Source§impl Clone for SerializeVariantShape
impl Clone for SerializeVariantShape
Source§fn clone(&self) -> SerializeVariantShape
fn clone(&self) -> SerializeVariantShape
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 SerializeVariantShape
impl Debug for SerializeVariantShape
impl Eq for SerializeVariantShape
Source§impl PartialEq for SerializeVariantShape
impl PartialEq for SerializeVariantShape
impl StructuralPartialEq for SerializeVariantShape
Auto Trait Implementations§
impl Freeze for SerializeVariantShape
impl RefUnwindSafe for SerializeVariantShape
impl Send for SerializeVariantShape
impl Sync for SerializeVariantShape
impl Unpin for SerializeVariantShape
impl UnsafeUnpin for SerializeVariantShape
impl UnwindSafe for SerializeVariantShape
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