Skip to main content

ReportPresenter

Trait ReportPresenter 

Source
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§

Provided Methods§

Source

fn present_json<W: Write>(&self, w: &mut W) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§