pub enum JsonValue {
Null,
Bool(bool),
Number(f64),
NumberText(String),
String(String),
Array(Vec<JsonValue>),
Object(Vec<(String, JsonValue)>),
}Variants§
Null
Bool(bool)
Number(f64)
NumberText(String)
Original numeric text, so integer round-trips don’t drift to
1.0. We render either the raw lexeme (when present) or
Number’s default formatting.
String(String)
Array(Vec<JsonValue>)
Object(Vec<(String, JsonValue)>)
Trait Implementations§
impl StructuralPartialEq for JsonValue
Auto Trait Implementations§
impl Freeze for JsonValue
impl RefUnwindSafe for JsonValue
impl Send for JsonValue
impl Sync for JsonValue
impl Unpin for JsonValue
impl UnsafeUnpin for JsonValue
impl UnwindSafe for JsonValue
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