Skip to main content

render

Function render 

Source
pub fn render<T: Serialize>(report: &T) -> Result<String, Error>
Expand description

Render report as exactly one compact JSON value followed by a newline, ready to write to stdout. Object keys come out in struct declaration order, so the output is stable.

Errors: The serializer’s error (not expected for the report types).