pub enum ValueType {
Null,
Bool,
I64,
I128,
U64,
U128,
F64,
String,
Array,
Object,
Extended(ExtendedValueType),
Custom(&'static str),
}
Expand description
Prelude to include needed traits Types of JSON values
Variants§
Null
null
Bool
a boolean
I64
a signed integer type
I128
a 128 bit signed integer
U64
a unsigned integer type
U128
a 128 bit unsigned integer
F64
a float type
String
a string type
Array
an array
Object
an object
Extended(ExtendedValueType)
Extended types that do not have a real representation in JSON
Custom(&'static str)
a custom type
Trait Implementations§
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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)