#[non_exhaustive]pub enum MetadataValue {
Null,
Boolean(bool),
Number(ProtectedString),
String(ProtectedString),
Sequence(Vec<Sourced<MetadataNode>>),
Mapping(Vec<MetadataEntry>),
}Expand description
Semantic value of vendor metadata. Map and sequence order is retained.
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.
Null
Null value.
Boolean(bool)
Boolean value.
Number(ProtectedString)
JSON-compatible decimal number spelling, without floating-point conversion.
String(ProtectedString)
Semantic string value.
Sequence(Vec<Sourced<MetadataNode>>)
Ordered nested sequence.
Mapping(Vec<MetadataEntry>)
Ordered string-keyed mapping.
Trait Implementations§
Source§impl Clone for MetadataValue
impl Clone for MetadataValue
Source§impl Debug for MetadataValue
impl Debug for MetadataValue
impl Eq for MetadataValue
Source§impl PartialEq for MetadataValue
impl PartialEq for MetadataValue
impl StructuralPartialEq for MetadataValue
Auto Trait Implementations§
impl Freeze for MetadataValue
impl RefUnwindSafe for MetadataValue
impl Send for MetadataValue
impl Sync for MetadataValue
impl Unpin for MetadataValue
impl UnsafeUnpin for MetadataValue
impl UnwindSafe for MetadataValue
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