pub struct SerializeFieldShape {
pub member: FieldMember,
pub name: &'static str,
pub description: Option<&'static str>,
pub wire_shape: FieldWireShape,
pub skip_if: Option<&'static str>,
}Expand description
Field-level serialization metadata.
Fields§
§member: FieldMemberThe original Rust field member.
name: &'static strThe primary Serde serialize name.
description: Option<&'static str>User-facing documentation for this field, if available.
wire_shape: FieldWireShapeHow this field contributes to the serialized wire shape.
skip_if: Option<&'static str>The predicate used to skip this field during serialization, rendered as a parseable Rust path token stream. Whitespace is not normalized.
Trait Implementations§
Source§impl Clone for SerializeFieldShape
impl Clone for SerializeFieldShape
Source§fn clone(&self) -> SerializeFieldShape
fn clone(&self) -> SerializeFieldShape
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 SerializeFieldShape
impl Debug for SerializeFieldShape
impl Eq for SerializeFieldShape
Source§impl PartialEq for SerializeFieldShape
impl PartialEq for SerializeFieldShape
impl StructuralPartialEq for SerializeFieldShape
Auto Trait Implementations§
impl Freeze for SerializeFieldShape
impl RefUnwindSafe for SerializeFieldShape
impl Send for SerializeFieldShape
impl Sync for SerializeFieldShape
impl Unpin for SerializeFieldShape
impl UnsafeUnpin for SerializeFieldShape
impl UnwindSafe for SerializeFieldShape
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