Skip to main content

render_output

Function render_output 

Source
pub fn render_output<W: Write, T: Serialize>(
    writer: &mut W,
    json_mode: bool,
    value: &T,
    table_fn: impl FnOnce() -> Table,
) -> Result<()>
Expand description

Render a value as JSON or table into the given writer.

ยงErrors

Returns an error if JSON serialization or writing fails.