#[non_exhaustive]pub enum Format {
Show 13 variants
Json,
Jsonl,
Csv,
Yaml,
Toml,
Xml,
Msgpack,
Xlsx,
Sqlite,
Parquet,
Markdown,
Html,
Table,
}Expand description
Supported data formats for reading and writing.
Each variant represents a data serialization format that dkit can
convert to or from the unified Value model.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Json
JSON (*.json)
Jsonl
JSON Lines / NDJSON (*.jsonl, *.ndjson)
Csv
Comma/Tab-separated values (*.csv, *.tsv)
Yaml
YAML (*.yaml, *.yml)
Toml
TOML (*.toml)
Xml
XML (*.xml)
Msgpack
MessagePack binary format (*.msgpack)
Xlsx
Excel spreadsheet (*.xlsx, read-only)
Sqlite
SQLite database (*.sqlite, read-only)
Parquet
Apache Parquet columnar format (*.parquet)
Markdown
Markdown table (write-only)
Html
HTML table (write-only)
Table
Terminal table (write-only, used by dkit view)
Implementations§
Trait Implementations§
impl Copy for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more