pub enum UnknownFieldAction {
Ignore,
Warn,
Deny,
}
Expand description
Specify how FromDynamic will treat unknown fields when converting from Value to a given target type
Variants§
Trait Implementations§
source§impl Clone for UnknownFieldAction
impl Clone for UnknownFieldAction
source§fn clone(&self) -> UnknownFieldAction
fn clone(&self) -> UnknownFieldAction
Returns a copy 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 UnknownFieldAction
impl Debug for UnknownFieldAction
source§impl Default for UnknownFieldAction
impl Default for UnknownFieldAction
source§fn default() -> UnknownFieldAction
fn default() -> UnknownFieldAction
Returns the “default value” for a type. Read more
source§impl PartialEq for UnknownFieldAction
impl PartialEq for UnknownFieldAction
source§fn eq(&self, other: &UnknownFieldAction) -> bool
fn eq(&self, other: &UnknownFieldAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UnknownFieldAction
impl Eq for UnknownFieldAction
impl StructuralEq for UnknownFieldAction
impl StructuralPartialEq for UnknownFieldAction
Auto Trait Implementations§
impl RefUnwindSafe for UnknownFieldAction
impl Send for UnknownFieldAction
impl Sync for UnknownFieldAction
impl Unpin for UnknownFieldAction
impl UnwindSafe for UnknownFieldAction
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