pub enum ExtraFieldsBehavior {
Ignore,
Forbid,
Allow,
}Expand description
Behavior for handling extra fields during validation.
Variants§
Ignore
Allow extra fields (ignore them).
Forbid
Forbid extra fields (return validation error).
Allow
Allow extra fields and preserve them.
Trait Implementations§
Source§impl Clone for ExtraFieldsBehavior
impl Clone for ExtraFieldsBehavior
Source§fn clone(&self) -> ExtraFieldsBehavior
fn clone(&self) -> ExtraFieldsBehavior
Returns a duplicate of the value. Read more
1.0.0 · 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 ExtraFieldsBehavior
impl Debug for ExtraFieldsBehavior
Source§impl Default for ExtraFieldsBehavior
impl Default for ExtraFieldsBehavior
Source§fn default() -> ExtraFieldsBehavior
fn default() -> ExtraFieldsBehavior
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExtraFieldsBehavior
impl PartialEq for ExtraFieldsBehavior
impl Copy for ExtraFieldsBehavior
impl Eq for ExtraFieldsBehavior
impl StructuralPartialEq for ExtraFieldsBehavior
Auto Trait Implementations§
impl Freeze for ExtraFieldsBehavior
impl RefUnwindSafe for ExtraFieldsBehavior
impl Send for ExtraFieldsBehavior
impl Sync for ExtraFieldsBehavior
impl Unpin for ExtraFieldsBehavior
impl UnwindSafe for ExtraFieldsBehavior
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).