pub async fn parse_csv(
bytes: &[u8],
delimiter: u8,
has_headers: bool,
) -> Result<Vec<Value>, FaucetError>Available on crate feature
source-rest only.Expand description
Parse CSV bytes into records. When has_headers, the first row supplies
field names; otherwise fields are named column_0, column_1, … Values are
strings (matching the csv source). Streaming RFC-4180 via csv-async, so
quoted fields with embedded newlines are handled correctly.