Skip to main content

JsonExportable

Trait JsonExportable 

Source
pub trait JsonExportable: Serialize + DeserializeOwned {
    // Provided methods
    fn to_json_value(&self) -> Result<Value> { ... }
    fn from_json_value(value: Value) -> Result<Self>
       where Self: Sized { ... }
}

Provided Methods§

Source

fn to_json_value(&self) -> Result<Value>

Source

fn from_json_value(value: Value) -> Result<Self>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§