pub trait PrettyJson {
// Required method
fn to_pretty_json(&self) -> Result<String>;
}Expand description
Trait for canonical pretty-printing of CMN protocol types.
Required Methods§
fn to_pretty_json(&self) -> Result<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".