pub struct DeserializeContainerAttributes {
pub deny_unknown_fields: bool,
pub default: DefaultShape,
pub expecting: Option<&'static str>,
pub non_exhaustive: bool,
}Expand description
Container metadata relevant to deserialization.
Default represents a container with no default, expectation, or optional behavior
configured. Enum tagging is recorded once in DeserializeEnumShape::repr, and flattened
fields are identified by FieldWireShape::Flatten.
Fields§
§deny_unknown_fields: boolWhether unknown fields are rejected.
default: DefaultShapeThe default used for missing fields.
expecting: Option<&'static str>Custom Serde expectation text, if present.
non_exhaustive: boolWhether the Rust item is marked #[non_exhaustive].
Trait Implementations§
Source§impl Clone for DeserializeContainerAttributes
impl Clone for DeserializeContainerAttributes
Source§fn clone(&self) -> DeserializeContainerAttributes
fn clone(&self) -> DeserializeContainerAttributes
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 Default for DeserializeContainerAttributes
impl Default for DeserializeContainerAttributes
Source§fn default() -> DeserializeContainerAttributes
fn default() -> DeserializeContainerAttributes
Returns the “default value” for a type. Read more
impl Eq for DeserializeContainerAttributes
impl StructuralPartialEq for DeserializeContainerAttributes
Auto Trait Implementations§
impl Freeze for DeserializeContainerAttributes
impl RefUnwindSafe for DeserializeContainerAttributes
impl Send for DeserializeContainerAttributes
impl Sync for DeserializeContainerAttributes
impl Unpin for DeserializeContainerAttributes
impl UnsafeUnpin for DeserializeContainerAttributes
impl UnwindSafe for DeserializeContainerAttributes
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