#[non_exhaustive]pub enum KeyValue {
Scalar(Scalar),
Object(ObjectKey),
}Expand description
The value of one key of an object: a typed scalar, or, for a class-typed key, the nested object (written unquoted in the encoding, 16.5).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Scalar(Scalar)
A scalar key: a string, number, boolean, date or instant.
Object(ObjectKey)
A class-typed key: the key of an object of another class.
Trait Implementations§
impl Eq for KeyValue
impl StructuralPartialEq for KeyValue
Auto Trait Implementations§
impl Forget for KeyValue
impl Freeze for KeyValue
impl Move for KeyValue
impl RefUnwindSafe for KeyValue
impl Send for KeyValue
impl Sync for KeyValue
impl Unpin for KeyValue
impl UnsafeUnpin for KeyValue
impl UnwindSafe for KeyValue
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