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<()>

Object Safety§

This trait is not object safe.

Implementors§