pub trait ReportPresenter: Serialize {
// Required method
fn present_human(&self) -> String;
// Provided method
fn present_json<W: Write>(&self, w: &mut W) -> Result<()> { ... }
}Expand description
Trait implemented by CLI report structures to guarantee clean JSON stream splitting and diagnostic card formatting.
Required Methods§
fn present_human(&self) -> String
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".