pub enum JSONValue<'input> {
Show 14 variants
JSONObject {
key_value_pairs: Vec<JSONKeyValuePair<'input>>,
},
JSONArray {
values: Vec<JSONValue<'input>>,
},
Integer(&'input str),
Float(&'input str),
Exponent(&'input str),
Null,
Infinity,
NaN,
Hexadecimal(&'input str),
Bool(bool),
DoubleQuotedString(&'input str),
SingleQuotedString(&'input str),
Unary {
operator: UnaryOperator,
value: Box<JSONValue<'input>>,
},
Identifier(&'input str),
}
Variants§
JSONObject
Fields
§
key_value_pairs: Vec<JSONKeyValuePair<'input>>
JSONArray
Integer(&'input str)
Float(&'input str)
Exponent(&'input str)
Null
Infinity
NaN
Hexadecimal(&'input str)
Bool(bool)
DoubleQuotedString(&'input str)
SingleQuotedString(&'input str)
Unary
Identifier(&'input str)
Trait Implementations§
impl<'input> StructuralPartialEq for JSONValue<'input>
Auto Trait Implementations§
impl<'input> Freeze for JSONValue<'input>
impl<'input> RefUnwindSafe for JSONValue<'input>
impl<'input> Send for JSONValue<'input>
impl<'input> Sync for JSONValue<'input>
impl<'input> Unpin for JSONValue<'input>
impl<'input> UnwindSafe for JSONValue<'input>
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