pub enum MetadataValueType {
Null,
Bool,
Number,
String,
Array,
Object,
}Expand description
Coarse-grained JSON value types used by crate::MetadataError and inspection APIs.
Metadata stores arbitrary serde_json::Value instances, so it cannot
recover the caller’s original Rust type. MetadataValueType is therefore a
JSON-level classification, analogous to the stricter data_type() concept
in qubit-value, but tailored to an open-ended JSON model.
Variants§
Null
JSON null.
Bool
JSON boolean.
Number
JSON number.
String
JSON string.
Array
JSON array.
Object
JSON object.
Implementations§
Trait Implementations§
Source§impl Clone for MetadataValueType
impl Clone for MetadataValueType
Source§fn clone(&self) -> MetadataValueType
fn clone(&self) -> MetadataValueType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetadataValueType
impl Debug for MetadataValueType
Source§impl Display for MetadataValueType
impl Display for MetadataValueType
Source§impl From<&Value> for MetadataValueType
impl From<&Value> for MetadataValueType
Source§impl Hash for MetadataValueType
impl Hash for MetadataValueType
Source§impl PartialEq for MetadataValueType
impl PartialEq for MetadataValueType
impl Copy for MetadataValueType
impl Eq for MetadataValueType
impl StructuralPartialEq for MetadataValueType
Auto Trait Implementations§
impl Freeze for MetadataValueType
impl RefUnwindSafe for MetadataValueType
impl Send for MetadataValueType
impl Sync for MetadataValueType
impl Unpin for MetadataValueType
impl UnsafeUnpin for MetadataValueType
impl UnwindSafe for MetadataValueType
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