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
Ignore
Don’t check, don’t warn, don’t raise an error
Warn
Emit a log::warn log
Deny
Return an Error
Trait Implementations
sourceimpl Clone for UnknownFieldAction
impl Clone for UnknownFieldAction
sourcefn clone(&self) -> UnknownFieldAction
fn clone(&self) -> UnknownFieldAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnknownFieldAction
impl Debug for UnknownFieldAction
sourceimpl Default for UnknownFieldAction
impl Default for UnknownFieldAction
sourcefn default() -> UnknownFieldAction
fn default() -> UnknownFieldAction
Returns the “default value” for a type. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more