#[non_exhaustive]pub enum FieldWireShape {
Omitted,
Value(ShapeRef),
Flatten(ShapeRef),
Inline(ShapeRef),
}Expand description
How a field contributes to the wire representation in one Serde direction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Omitted
The field emits or accepts no value in this direction.
Value(ShapeRef)
The field appears as a regular value at its Serde position.
Flatten(ShapeRef)
The field is flattened into the containing map.
Inline(ShapeRef)
The field is serialized or deserialized directly at the containing type’s position.
Implementations§
Trait Implementations§
Source§impl Clone for FieldWireShape
impl Clone for FieldWireShape
Source§fn clone(&self) -> FieldWireShape
fn clone(&self) -> FieldWireShape
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 FieldWireShape
impl Debug for FieldWireShape
impl Eq for FieldWireShape
Source§impl PartialEq for FieldWireShape
impl PartialEq for FieldWireShape
impl StructuralPartialEq for FieldWireShape
Auto Trait Implementations§
impl Freeze for FieldWireShape
impl RefUnwindSafe for FieldWireShape
impl Send for FieldWireShape
impl Sync for FieldWireShape
impl Unpin for FieldWireShape
impl UnsafeUnpin for FieldWireShape
impl UnwindSafe for FieldWireShape
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