pub enum JSONValue {
Show 14 variants
JSONObject {
key_value_pairs: Vec<JSONKeyValuePair>,
context: Option<JSONObjectContext>,
},
JSONArray {
values: Vec<JSONArrayValue>,
context: Option<JSONArrayContext>,
},
Integer(String),
Float(String),
Exponent(String),
Null,
Infinity,
NaN,
Hexadecimal(String),
Bool(bool),
DoubleQuotedString(String),
SingleQuotedString(String),
Unary {
operator: UnaryOperator,
value: Box<JSONValue>,
},
Identifier(String),
}
Variants§
JSONObject
JSONArray
Integer(String)
Float(String)
Exponent(String)
Null
Infinity
NaN
Hexadecimal(String)
Bool(bool)
DoubleQuotedString(String)
SingleQuotedString(String)
Unary
Identifier(String)
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 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