pub struct JSONKeyValuePair {
pub key: JSONValue,
pub value: JSONValue,
pub context: Option<KeyValuePairContext>,
}
Expand description
Represents the ‘JSON5Member’ production.
In other words, it’s the key-value pairs of a JSONValue::JSONObject
Fields§
§key: JSONValue
a JSONValue
, in practice, is limited to JSONValue::Identifier,
JSONValue::DoubleQuotedString or a JSONValue::SingleQuotedString
value: JSONValue
§context: Option<KeyValuePairContext>
Trait Implementations§
Source§impl Clone for JSONKeyValuePair
impl Clone for JSONKeyValuePair
Source§fn clone(&self) -> JSONKeyValuePair
fn clone(&self) -> JSONKeyValuePair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JSONKeyValuePair
impl Debug for JSONKeyValuePair
Source§impl PartialEq for JSONKeyValuePair
impl PartialEq for JSONKeyValuePair
impl StructuralPartialEq for JSONKeyValuePair
Auto Trait Implementations§
impl Freeze for JSONKeyValuePair
impl RefUnwindSafe for JSONKeyValuePair
impl Send for JSONKeyValuePair
impl Sync for JSONKeyValuePair
impl Unpin for JSONKeyValuePair
impl UnwindSafe for JSONKeyValuePair
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