pub struct ContainerAttributes {
pub tagging: Tagging,
pub deny_unknown_fields: bool,
pub default: DefaultShape,
pub has_flatten: bool,
pub transparent: bool,
pub expecting: Option<&'static str>,
pub non_exhaustive: bool,
}Expand description
Serde attributes that apply to a whole container.
Fields§
§tagging: TaggingThe container tagging representation.
deny_unknown_fields: boolWhether unknown fields are rejected.
default: DefaultShapeThe default used for missing fields.
has_flatten: boolWhether any field is flattened.
transparent: boolWhether the container uses #[serde(transparent)].
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 ContainerAttributes
impl Clone for ContainerAttributes
Source§fn clone(&self) -> ContainerAttributes
fn clone(&self) -> ContainerAttributes
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 ContainerAttributes
impl Debug for ContainerAttributes
impl Eq for ContainerAttributes
Source§impl PartialEq for ContainerAttributes
impl PartialEq for ContainerAttributes
Source§fn eq(&self, other: &ContainerAttributes) -> bool
fn eq(&self, other: &ContainerAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContainerAttributes
Auto Trait Implementations§
impl Freeze for ContainerAttributes
impl RefUnwindSafe for ContainerAttributes
impl Send for ContainerAttributes
impl Sync for ContainerAttributes
impl Unpin for ContainerAttributes
impl UnsafeUnpin for ContainerAttributes
impl UnwindSafe for ContainerAttributes
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