Module output_format

Module output_format 

Source
Expand description

Output format helpers — CSV, JSONL, JSON Output format helpers — CSV, JSONL, JSON.

Implements OutputFormatter for the three formats defined in crate::ports::storage::OutputFormat.

Structs§

CsvFormatter
Serialises records as CSV.
JsonFormatter
Serialises records as a pretty-printed JSON array.
JsonlFormatter
Serialises records as newline-delimited JSON (one JSON object per line).

Functions§

formatter_for
Return the appropriate OutputFormatter boxed for the given format.