pub enum Json {
Array(Vec<Json>),
Object(HashMap<String, Json>),
String(String),
Number(f64),
True,
False,
Null,
}
Expand description
Represents a JSON object
Variants§
Implementations§
source§impl Json
impl Json
sourcepub fn deserialize(text: &str) -> Result<Json>
pub fn deserialize(text: &str) -> Result<Json>
Deserializes the given string into a Json object
sourcepub fn deserialize_with_config(text: &str, conf: JsonConfig) -> Result<Json>
pub fn deserialize_with_config(text: &str, conf: JsonConfig) -> Result<Json>
Deserializes the given string into a Json object using the given JsonConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Json
impl RefUnwindSafe for Json
impl Send for Json
impl Sync for Json
impl Unpin for Json
impl UnwindSafe for Json
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