#[non_exhaustive]pub enum MetadataField<T> {
Missing,
Present(T),
Invalid(ViewError),
UnsupportedSchema {
description: String,
},
}Expand description
The state of one known namespace metadata field.
Missing means that the field was absent from the metadata object.
Present includes an empty collection. Invalid means the field belongs
to the supported schema but contains invalid data. UnsupportedSchema
means that the shape was understood but is outside the supported profile.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for MetadataField<T>
impl<T: Clone> Clone for MetadataField<T>
Source§impl<T: Debug> Debug for MetadataField<T>
impl<T: Debug> Debug for MetadataField<T>
impl<T: Eq> Eq for MetadataField<T>
Source§impl<T: PartialEq> PartialEq for MetadataField<T>
impl<T: PartialEq> PartialEq for MetadataField<T>
impl<T: PartialEq> StructuralPartialEq for MetadataField<T>
Auto Trait Implementations§
impl<T> Freeze for MetadataField<T>where
T: Freeze,
impl<T> RefUnwindSafe for MetadataField<T>where
T: RefUnwindSafe,
impl<T> Send for MetadataField<T>where
T: Send,
impl<T> Sync for MetadataField<T>where
T: Sync,
impl<T> Unpin for MetadataField<T>where
T: Unpin,
impl<T> UnsafeUnpin for MetadataField<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MetadataField<T>where
T: UnwindSafe,
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