Skip to main content

emit_json

Function emit_json 

Source
pub fn emit_json<T: Serialize>(
    report: &T,
    path: Option<&Path>,
) -> Result<(), CliError>
Expand description

Render report as JSON and emit it.

Errors: CliError::Io when the report cannot be serialized or written.