pub enum JsonValue {
Null,
Bool(bool),
Number(Number),
String(String),
Array(Vec<JsonValue>),
Object(BTreeMap<String, JsonValue>),
}Expand description
Types for conforms JSON.
Variants§
Null
Correspond for null in JSON.
Bool(bool)
Correspond for boolean in JSON.
Number(Number)
Correspond for number in JSON.
String(String)
Correspond for string in JSON.
Array(Vec<JsonValue>)
Correspond for array in JSON.
Object(BTreeMap<String, JsonValue>)
Correspond for object in JSON.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonValue
impl RefUnwindSafe for JsonValue
impl Send for JsonValue
impl Sync for JsonValue
impl Unpin 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