pub enum Value {
Primitive(Primitive),
Array(ValueArray),
Object(BTreeMap<String, Value>),
}Expand description
Supports primitive types string, number, boolean, null
May be an array of those types, or an object of those types
Object keys are always strings, values can be any basic type, an array, or a nested object.
Array values must all be the same type.
Variants§
Primitive(Primitive)
A primitive value
Array(ValueArray)
An array of values
Object(BTreeMap<String, Value>)
A nested object
Trait Implementations§
source§impl PartialEq for Value
impl PartialEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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