Trait JsonSave

Source
pub trait JsonSave
where Self: Default + Serialize,
{ // Provided methods fn preamble() -> Option<String> { ... } fn maybe_create_dfl<P: AsRef<Path>>(path_in: P) -> Result<bool> { ... } fn as_json(&self) -> Result<String> { ... } fn save<P: AsRef<Path>>(&self, path: P) -> Result<()> { ... } }

Provided Methods§

Source

fn preamble() -> Option<String>

Source

fn maybe_create_dfl<P: AsRef<Path>>(path_in: P) -> Result<bool>

Source

fn as_json(&self) -> Result<String>

Source

fn save<P: AsRef<Path>>(&self, path: P) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§