pub enum UnknownMetadataFieldPolicy {
Reject,
Allow,
}Expand description
Policy for metadata fields that are not declared by a schema.
§Examples
use qubit_metadata::UnknownMetadataFieldPolicy;
assert_eq!(UnknownMetadataFieldPolicy::default(), UnknownMetadataFieldPolicy::Reject);Variants§
Reject
Reject metadata keys that are not declared in the schema.
Allow
Allow metadata keys that are not declared in the schema.
Trait Implementations§
Source§impl Clone for UnknownMetadataFieldPolicy
impl Clone for UnknownMetadataFieldPolicy
Source§fn clone(&self) -> UnknownMetadataFieldPolicy
fn clone(&self) -> UnknownMetadataFieldPolicy
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 moreimpl Copy for UnknownMetadataFieldPolicy
Source§impl Debug for UnknownMetadataFieldPolicy
impl Debug for UnknownMetadataFieldPolicy
Source§impl Default for UnknownMetadataFieldPolicy
impl Default for UnknownMetadataFieldPolicy
Source§fn default() -> UnknownMetadataFieldPolicy
fn default() -> UnknownMetadataFieldPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnknownMetadataFieldPolicy
impl<'de> Deserialize<'de> for UnknownMetadataFieldPolicy
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
impl Eq for UnknownMetadataFieldPolicy
impl StructuralPartialEq for UnknownMetadataFieldPolicy
Auto Trait Implementations§
impl Freeze for UnknownMetadataFieldPolicy
impl RefUnwindSafe for UnknownMetadataFieldPolicy
impl Send for UnknownMetadataFieldPolicy
impl Sync for UnknownMetadataFieldPolicy
impl Unpin for UnknownMetadataFieldPolicy
impl UnsafeUnpin for UnknownMetadataFieldPolicy
impl UnwindSafe for UnknownMetadataFieldPolicy
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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. Read more