pub enum PyJson {
Null,
Bool(bool),
Int(String),
Float(f64),
Str(String),
Array(Vec<PyJson>),
Object(Vec<(String, PyJson)>),
}Expand description
A JSON value exactly as Python’s json module reads and writes it.
Variants§
Null
Bool(bool)
Int(String)
Any integer, as canonical decimal text.
Float(f64)
Any f64, including NaN, infinities, and negative zero.
Str(String)
Array(Vec<PyJson>)
Object(Vec<(String, PyJson)>)
Object members in insertion order.
Trait Implementations§
impl StructuralPartialEq for PyJson
Auto Trait Implementations§
impl Freeze for PyJson
impl RefUnwindSafe for PyJson
impl Send for PyJson
impl Sync for PyJson
impl Unpin for PyJson
impl UnsafeUnpin for PyJson
impl UnwindSafe for PyJson
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