Trait JsonDump

Source
pub trait JsonDump: Serialize {
    // Required methods
    fn file_name(&self) -> String;
    fn dir_name(&self) -> &'static str;

    // Provided method
    fn dump_json(&self) { ... }
}

Required Methods§

Source

fn file_name(&self) -> String

Source

fn dir_name(&self) -> &'static str

Provided Methods§

Source

fn dump_json(&self)

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§