pub struct FieldShape {
pub member: FieldMember,
pub deserialize_name: &'static str,
pub deserialize_aliases: Vec<&'static str>,
pub shape: Option<ShapeRef>,
pub default: DefaultShape,
pub flatten: bool,
pub skip_deserializing: bool,
pub custom_deserializer: bool,
pub transparent: bool,
}Expand description
Field-level shape metadata.
Fields§
§member: FieldMemberThe original Rust field member.
deserialize_name: &'static strThe primary Serde deserialize name.
deserialize_aliases: Vec<&'static str>All accepted Serde deserialize names, including the primary name.
shape: Option<ShapeRef>The field input shape, or None when the field has no inferred input.
default: DefaultShapeThe default used if this field is missing.
flatten: boolWhether the field is flattened into the containing map.
skip_deserializing: boolWhether Serde skips this field during deserialization.
custom_deserializer: boolWhether this field uses a custom deserializer.
transparent: boolWhether this is the transparent field of a transparent container.
Trait Implementations§
Source§impl Clone for FieldShape
impl Clone for FieldShape
Source§fn clone(&self) -> FieldShape
fn clone(&self) -> FieldShape
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 FieldShape
impl Debug for FieldShape
impl Eq for FieldShape
Source§impl PartialEq for FieldShape
impl PartialEq for FieldShape
Source§fn eq(&self, other: &FieldShape) -> bool
fn eq(&self, other: &FieldShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldShape
Auto Trait Implementations§
impl Freeze for FieldShape
impl RefUnwindSafe for FieldShape
impl Send for FieldShape
impl Sync for FieldShape
impl Unpin for FieldShape
impl UnsafeUnpin for FieldShape
impl UnwindSafe for FieldShape
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