Skip to content

enum

Format

pub enum Format {
    Csv,
    Json,
    Ndjson,
    Sdmx,
    Excel,
}

A source's format.

Variants

Csv

Csv

Comma-separated values.

Json

Json

JSON.

Ndjson

Ndjson

One JSON record per line.

Sdmx

Sdmx

SDMX official statistics (needs the stats feature).

Excel

Excel

An Excel workbook.

Methods

parse

pub fn parse(s: &str) -> Option<Format>

The format s names: csv (or tsv), json (or geojson), ndjson (or jsonl), sdmx or xlsx.

Trait implementations