[−][src]Enum json_minimal::Json
Variants
Fields of NULL
name: String
Implementations
impl Json
[src]
pub fn new() -> Json
[src]
pub fn add_object(&mut self, name: String, value: Vec<Json>) -> &mut Json
[src]
pub fn add_array(&mut self, name: String, value: Vec<ArrayVal>) -> &mut Json
[src]
pub fn add_string(&mut self, name: String, value: String) -> &mut Json
[src]
pub fn arr_add_string(&mut self, value: String)
[src]
pub fn add_number(&mut self, name: String, value: f32) -> &mut Json
[src]
pub fn arr_add_number(&mut self, value: f32)
[src]
pub fn add_bool(&mut self, name: String, value: bool) -> &mut Json
[src]
pub fn arr_add_bool(&mut self, value: bool)
[src]
pub fn add_null(&mut self, name: String) -> &mut Json
[src]
pub fn arr_add_null(&mut self)
[src]
pub fn get(&self, name: &str) -> Option<&Json>
[src]
pub fn arr_get(&self, which: usize) -> Option<&ArrayVal>
[src]
pub fn get_mut(&mut self, name: &str) -> Option<&mut Json>
[src]
pub fn arr_get_mut(&mut self, which: usize) -> Option<&mut ArrayVal>
[src]
pub fn names_match(&self, name: &Vec<String>) -> bool
[src]
pub fn form_matches(&self, reference: &Json) -> bool
[src]
pub fn is_object(&self) -> bool
[src]
pub fn is_array(&self) -> bool
[src]
pub fn is_string(&self) -> bool
[src]
pub fn is_number(&self) -> bool
[src]
pub fn is_bool(&self) -> bool
[src]
pub fn is_null(&self) -> bool
[src]
pub fn print(&self) -> String
[src]
pub fn pretty_print(&self) -> String
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Json
impl Send for Json
impl Sync for Json
impl Unpin for Json
impl UnwindSafe for Json
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,