pub enum Json {
Null,
Bool(bool),
Number(f64),
String(String),
Array(Vec<Json>),
Object(Vec<(String, Json)>),
}Expand description
A JSON value. An object keeps its keys in the order they first appear, each once.
Variants§
Null
Bool(bool)
Number(f64)
Never NaN; it may be infinite, from 1e400, which JSON writes
as null as JSON.stringify does.
String(String)
Array(Vec<Json>)
Object(Vec<(String, Json)>)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Json
Auto Trait Implementations§
impl Forget for Json
impl Freeze for Json
impl Move 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