pub enum JsonElement {
Number(f64),
String(String),
Boolean(bool),
Array(Vec<JsonElement>),
Object(HashMap<String, JsonElement>),
Null,
}Variants§
Number(f64)
String(String)
Boolean(bool)
Array(Vec<JsonElement>)
Object(HashMap<String, JsonElement>)
Null
Trait Implementations§
Source§impl Clone for JsonElement
impl Clone for JsonElement
Source§fn clone(&self) -> JsonElement
fn clone(&self) -> JsonElement
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 JsonElement
impl Debug for JsonElement
Source§impl PartialEq for JsonElement
impl PartialEq for JsonElement
impl StructuralPartialEq for JsonElement
Auto Trait Implementations§
impl Freeze for JsonElement
impl RefUnwindSafe for JsonElement
impl Send for JsonElement
impl Sync for JsonElement
impl Unpin for JsonElement
impl UnwindSafe for JsonElement
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