pub enum UnknownFieldPolicy {
Reject,
Allow,
}Expand description
Policy for fields that appear in metadata or filters but are not declared by a schema.
Variants§
Reject
Reject fields that are not declared in the schema.
Allow
Allow fields that are not declared in the schema.
Trait Implementations§
Source§impl Clone for UnknownFieldPolicy
impl Clone for UnknownFieldPolicy
Source§fn clone(&self) -> UnknownFieldPolicy
fn clone(&self) -> UnknownFieldPolicy
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 UnknownFieldPolicy
impl Debug for UnknownFieldPolicy
Source§impl Default for UnknownFieldPolicy
impl Default for UnknownFieldPolicy
Source§fn default() -> UnknownFieldPolicy
fn default() -> UnknownFieldPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnknownFieldPolicy
impl<'de> Deserialize<'de> for UnknownFieldPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UnknownFieldPolicy
impl PartialEq for UnknownFieldPolicy
Source§fn eq(&self, other: &UnknownFieldPolicy) -> bool
fn eq(&self, other: &UnknownFieldPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UnknownFieldPolicy
impl Serialize for UnknownFieldPolicy
impl Copy for UnknownFieldPolicy
impl Eq for UnknownFieldPolicy
impl StructuralPartialEq for UnknownFieldPolicy
Auto Trait Implementations§
impl Freeze for UnknownFieldPolicy
impl RefUnwindSafe for UnknownFieldPolicy
impl Send for UnknownFieldPolicy
impl Sync for UnknownFieldPolicy
impl Unpin for UnknownFieldPolicy
impl UnsafeUnpin for UnknownFieldPolicy
impl UnwindSafe for UnknownFieldPolicy
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> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value.