#[non_exhaustive]pub enum MetadataValue {
Bool(bool),
I64(i64),
U64(u64),
F64(f64),
String(String),
Bytes(BString),
Path(PathBuf),
}Expand description
An owned scalar value in a Metadata dictionary. Bytes and native paths retain their original representation.
Debug formatting keeps the variant and its value on a single line, even in pretty output.
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.
Bool(bool)
A boolean.
I64(i64)
A signed integer.
U64(u64)
An unsigned integer.
F64(f64)
A floating-point number.
String(String)
UTF-8 text.
Bytes(BString)
An arbitrary byte string.
Path(PathBuf)
A native filesystem path.
Trait Implementations§
Source§impl Clone for MetadataValue
impl Clone for MetadataValue
Source§impl Debug for MetadataValue
impl Debug for MetadataValue
Source§impl Display for MetadataValue
impl Display for MetadataValue
Source§impl From<&BStr> for MetadataValue
impl From<&BStr> for MetadataValue
Source§impl From<&Path> for MetadataValue
impl From<&Path> for MetadataValue
Source§impl From<&[u8]> for MetadataValue
impl From<&[u8]> for MetadataValue
Source§impl From<&str> for MetadataValue
impl From<&str> for MetadataValue
Source§impl From<BString> for MetadataValue
impl From<BString> for MetadataValue
Source§impl From<PathBuf> for MetadataValue
impl From<PathBuf> for MetadataValue
Source§impl From<String> for MetadataValue
impl From<String> for MetadataValue
Source§impl From<bool> for MetadataValue
impl From<bool> for MetadataValue
Source§impl From<f32> for MetadataValue
impl From<f32> for MetadataValue
Source§impl From<f64> for MetadataValue
impl From<f64> for MetadataValue
Source§impl From<i8> for MetadataValue
impl From<i8> for MetadataValue
Source§impl From<i16> for MetadataValue
impl From<i16> for MetadataValue
Source§impl From<i32> for MetadataValue
impl From<i32> for MetadataValue
Source§impl From<i64> for MetadataValue
impl From<i64> for MetadataValue
Source§impl From<isize> for MetadataValue
impl From<isize> for MetadataValue
Source§impl From<u8> for MetadataValue
impl From<u8> for MetadataValue
Source§impl From<u16> for MetadataValue
impl From<u16> for MetadataValue
Source§impl From<u32> for MetadataValue
impl From<u32> for MetadataValue
Source§impl From<u64> for MetadataValue
impl From<u64> for MetadataValue
Source§impl From<usize> for MetadataValue
impl From<usize> 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