Skip to main content

CsvEncode

Derive Macro CsvEncode 

Source
#[derive(CsvEncode)]
Expand description

Derives reliakit_csv::CsvEncode: a struct with named fields becomes a row, one column per field in declaration order, with the field names as the header.

Only structs with named fields are supported — CSV columns need names, so tuple structs, unit structs, and enums are rejected. See the crate documentation.