pub enum JsonValue<'a> {
Object(Vec<JsonKeyValue<'a>>),
Array(Vec<JsonValue<'a>>),
String(Cow<'a, str>),
Number(JsonNumeric),
Float(f64),
Integer(i64),
Boolean(bool),
Null,
}
Expand description
Basic enumeration of different Json values
Variants§
Object(Vec<JsonKeyValue<'a>>)
Map of values
Array(Vec<JsonValue<'a>>)
Array of values
String(Cow<'a, str>)
Canonical string value
Number(JsonNumeric)
Number value which will be a member of the union JsonNumeric
Float(f64)
Floating point numeric value
Integer(i64)
Integer numeric value
Boolean(bool)
Canonical boolean value
Null
Canonical null value
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for JsonValue<'a>
impl<'a> RefUnwindSafe for JsonValue<'a>
impl<'a> Send for JsonValue<'a>
impl<'a> Sync for JsonValue<'a>
impl<'a> Unpin for JsonValue<'a>
impl<'a> UnwindSafe for JsonValue<'a>
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