pub enum JsonPrimitiveValue {
Number(f64),
Boolean(bool),
String(String),
Null,
}
Expand description
A JSON value which is not an object or an array.
Variants§
Trait Implementations§
Source§impl Clone for JsonPrimitiveValue
impl Clone for JsonPrimitiveValue
Source§fn clone(&self) -> JsonPrimitiveValue
fn clone(&self) -> JsonPrimitiveValue
Returns a copy 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 JsonPrimitiveValue
impl Debug for JsonPrimitiveValue
Source§impl PartialEq for JsonPrimitiveValue
impl PartialEq for JsonPrimitiveValue
impl StructuralPartialEq for JsonPrimitiveValue
Auto Trait Implementations§
impl Freeze for JsonPrimitiveValue
impl RefUnwindSafe for JsonPrimitiveValue
impl Send for JsonPrimitiveValue
impl Sync for JsonPrimitiveValue
impl Unpin for JsonPrimitiveValue
impl UnwindSafe for JsonPrimitiveValue
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