pub struct StructShape {
pub style: FieldsStyle,
pub fields: Vec<FieldShape>,
pub attributes: ContainerAttributes,
}Expand description
Struct-like shape metadata.
Fields§
§style: FieldsStyleThe struct field style.
fields: Vec<FieldShape>The accepted deserialization fields.
attributes: ContainerAttributesContainer-level Serde attributes.
Trait Implementations§
Source§impl Clone for StructShape
impl Clone for StructShape
Source§fn clone(&self) -> StructShape
fn clone(&self) -> StructShape
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 StructShape
impl Debug for StructShape
impl Eq for StructShape
Source§impl PartialEq for StructShape
impl PartialEq for StructShape
Source§fn eq(&self, other: &StructShape) -> bool
fn eq(&self, other: &StructShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StructShape
Auto Trait Implementations§
impl Freeze for StructShape
impl RefUnwindSafe for StructShape
impl Send for StructShape
impl Sync for StructShape
impl Unpin for StructShape
impl UnsafeUnpin for StructShape
impl UnwindSafe for StructShape
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