pub fn render(report: &Report, format: Format, color: bool) -> Result<String>Expand description
Render a report in the requested format.
color applies to the text form only: machine output is never colourized, because a
consumer parsing JSON should never have to strip escape sequences first.
ยงErrors
Returns an invalid-request error when Tree/Paths/Long cannot represent the stored projection. Request the desired format on the query before reading: a detached, folded tree does not retain the complete flat inventory.