pub enum JSON {
Object(HashMap<String, JSON>),
Array(Vec<JSON>),
String(String),
Number(f64),
Bool(bool),
Null,
}
Expand description
Contains the JSON types and can be used to parse strings to json
Variants§
Object(HashMap<String, JSON>)
JSON Object
Array(Vec<JSON>)
JSON Array
String(String)
JSON String
Number(f64)
JSON Number
Bool(bool)
JSON Boolean
Null
JSON Null
Trait Implementations§
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 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