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.
- Json
Formatter - Serialises records as a pretty-printed JSON array.
- Jsonl
Formatter - Serialises records as newline-delimited JSON (one JSON object per line).
Functions§
- formatter_
for - Return the appropriate
OutputFormatterboxed for the given format.