pub struct DeserializeFieldShape {
pub member: FieldMember,
pub name: &'static str,
pub aliases: Vec<&'static str>,
pub description: Option<&'static str>,
pub wire_shape: FieldWireShape,
pub default: DefaultShape,
}Expand description
Field-level deserialization metadata.
Fields§
§member: FieldMemberThe original Rust field member.
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 field, if available.
wire_shape: FieldWireShapeHow this field contributes to the deserialized wire shape.
default: DefaultShapeThe default used if this field is missing.
Trait Implementations§
Source§impl Clone for DeserializeFieldShape
impl Clone for DeserializeFieldShape
Source§fn clone(&self) -> DeserializeFieldShape
fn clone(&self) -> DeserializeFieldShape
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 DeserializeFieldShape
impl Debug for DeserializeFieldShape
impl Eq for DeserializeFieldShape
Source§impl PartialEq for DeserializeFieldShape
impl PartialEq for DeserializeFieldShape
impl StructuralPartialEq for DeserializeFieldShape
Auto Trait Implementations§
impl Freeze for DeserializeFieldShape
impl RefUnwindSafe for DeserializeFieldShape
impl Send for DeserializeFieldShape
impl Sync for DeserializeFieldShape
impl Unpin for DeserializeFieldShape
impl UnsafeUnpin for DeserializeFieldShape
impl UnwindSafe for DeserializeFieldShape
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