pub enum Value {
Null,
Bool(bool),
Number(Number),
String(String),
Array(Vec<Value>),
Object(Vec<(String, Value)>),
}Expand description
Owned JSON data. Objects retain member order and parsed objects have unique keys.
Variants§
Null
JSON null.
Bool(bool)
JSON boolean.
Number(Number)
Exact JSON number.
String(String)
Unicode string.
Array(Vec<Value>)
Ordered values.
Object(Vec<(String, Value)>)
Ordered name/value members.
Implementations§
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Forget for Value
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