pub async fn decode(
bytes: &[u8],
format: FileFormat,
opts: &FormatOptions,
) -> Result<Vec<Value>, FaucetError>Expand description
Decode one object’s bytes into records.
Async because the CSV reader is (csv-async), and because keeping one
signature for every format is worth more than saving an .await on the
three that are synchronous.