Skip to main content

serialize_csv_with_policy

Function serialize_csv_with_policy 

Source
pub fn serialize_csv_with_policy(
    rows: &[(u32, Vec<(u32, CellValue)>)],
    formula_policy: CsvFormulaPolicy,
) -> Result<Vec<u8>>
Expand description

Serializes sparse typed rows as RFC 4180 CSV with an explicit policy.

Select CsvFormulaPolicy::RawExchange only for consumers that will not interpret fields as spreadsheet formulas. Row and column coordinates must be in-grid, strictly increasing, and unique.