pub enum ValueType {
Null,
Bool,
Number,
String,
Bytes,
Array,
Object,
DateTime,
QName,
Uuid,
}Expand description
Enum distinguishing the value types.
Variants§
Null
Null value
Bool
Boolean value
Number
Number (integers and floats)
String
String (UTF-8)
Bytes
Binary data (useful for binary formats)
Array
Array
Object
Object (key-value map)
DateTime
DateTime (offset, local datetime, local date, or local time)
QName
Qualified name (namespace + local name, for XML namespaces)
Uuid
UUID (128-bit universally unique identifier)
Trait Implementations§
Source§impl Ord for ValueType
impl Ord for ValueType
Source§impl PartialOrd for ValueType
impl PartialOrd for ValueType
impl Copy for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.