Skip to main content

JSON

Trait JSON 

Source
pub trait JSON {
    // Required methods
    fn to_text(&self) -> String;
    fn add_recursive(&mut self, new_value: Value);
    fn override_recursive(&mut self, new_value: Value);
}
Expand description

JSON utilities.

Required Methods§

Source

fn to_text(&self) -> String

Text without quotes (specially for strings).

Source

fn add_recursive(&mut self, new_value: Value)

Add a value recursively.

Source

fn override_recursive(&mut self, new_value: Value)

Override a value recursively.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl JSON for Value

Source§

fn to_text(&self) -> String

Source§

fn add_recursive(&mut self, new_value: Value)

Source§

fn override_recursive(&mut self, new_value: Value)

Implementors§