pub enum Value {
Null,
Bool(bool),
Integer(u64),
String(String),
Array(Vec<Value>),
Object(Vec<(String, Value)>),
}Expand description
A JSON value of the supported subset.
Variants§
Null
null.
Bool(bool)
true or false.
Integer(u64)
A non-negative integer that fits in u64.
String(String)
A string, unescaped.
Array(Vec<Value>)
An array.
Object(Vec<(String, Value)>)
Members in order; keys are unique.
Implementations§
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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