pub struct JsonObject { /* private fields */ }Expand description
A JSON structure that is formatted like the following:
{ “key”: “value” }
Implementations§
Source§impl JsonObject
impl JsonObject
Sourcepub fn empty() -> JsonObject
pub fn empty() -> JsonObject
Creates an empty JSON object. This is useful for building a JSON object from scratch.
Sourcepub fn from_string(json: &str) -> JsonObject
pub fn from_string(json: &str) -> JsonObject
Builds a JSONObject from a string containing keys and values.
§Arguments
json— An owned string containing the JSON.
Trait Implementations§
Source§impl Debug for JsonObject
impl Debug for JsonObject
Source§impl Default for JsonObject
impl Default for JsonObject
Auto Trait Implementations§
impl Freeze for JsonObject
impl RefUnwindSafe for JsonObject
impl Send for JsonObject
impl Sync for JsonObject
impl Unpin for JsonObject
impl UnwindSafe for JsonObject
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