pub enum Json {
Null,
Bool(bool),
Number(Decimal),
String(String),
Array(Vec<Json>),
Object(Vec<(String, Json)>),
}Expand description
A JSON value.
An object keeps its members in the order they were read or built; the canonical writer sorts them. A tree built here never holds two members with one key.
Variants§
Null
null.
Bool(bool)
true or false.
Number(Decimal)
A number, exactly.
String(String)
A string.
Array(Vec<Json>)
An array.
Object(Vec<(String, Json)>)
An object.
Implementations§
Trait Implementations§
impl Eq for Json
impl StructuralPartialEq for Json
Auto Trait Implementations§
impl Freeze for Json
impl RefUnwindSafe for Json
impl Send for Json
impl Sync for Json
impl Unpin for Json
impl UnsafeUnpin for Json
impl UnwindSafe for Json
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