write_csv_rows

Function write_csv_rows 

Source
fn write_csv_rows(
    writer: &mut Writer<Vec<u8>>,
    final_columns: &[CsvColumnDefinition],
    column_index_map: &HashMap<String, usize>,
    service_key_to_final_key: &HashMap<String, String>,
    base_row: &HashMap<String, String>,
    rows: &[HashMap<String, Value>],
) -> Result<(), ControllerError>
Expand description

Writes CSV rows merging base_row and service rows; validates keys against mapping.