#[non_exhaustive]pub enum MetadataValueKind {
Show 13 variants
String,
LangString,
I64,
U64,
Decimal,
Bool,
Timestamp,
Uri,
Bytes,
Rational,
List,
Struct,
Reference,
}Expand description
The inspectable type of a MetadataValue.
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.
String
Unqualified UTF-8 text.
LangString
UTF-8 text with a language tag.
I64
Signed 64-bit integer.
U64
Unsigned 64-bit integer.
Decimal
Exact base-ten decimal.
Bool
Boolean.
Timestamp
Signed Unix-microsecond timestamp.
Uri
URI text validated without normalization.
Bytes
Opaque bytes.
Rational
Exact rational number.
List
Ordered nested values.
Struct
Ordered named fields.
Reference
Reference to another PostProject object.
Trait Implementations§
Source§impl Clone for MetadataValueKind
impl Clone for MetadataValueKind
Source§fn clone(&self) -> MetadataValueKind
fn clone(&self) -> MetadataValueKind
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 MetadataValueKind
Source§impl Debug for MetadataValueKind
impl Debug for MetadataValueKind
impl Eq for MetadataValueKind
Source§impl Hash for MetadataValueKind
impl Hash for MetadataValueKind
Source§impl PartialEq for MetadataValueKind
impl PartialEq for MetadataValueKind
Source§fn eq(&self, other: &MetadataValueKind) -> bool
fn eq(&self, other: &MetadataValueKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetadataValueKind
Auto Trait Implementations§
impl Freeze for MetadataValueKind
impl RefUnwindSafe for MetadataValueKind
impl Send for MetadataValueKind
impl Sync for MetadataValueKind
impl Unpin for MetadataValueKind
impl UnsafeUnpin for MetadataValueKind
impl UnwindSafe for MetadataValueKind
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