pub struct Descriptor {Show 16 fields
pub name: &'static str,
pub title: &'static str,
pub extensions: &'static [&'static str],
pub name_endings: &'static [&'static str],
pub read: ReadMode,
pub compressed: Compressed,
pub stream: Option<ReadMode>,
pub http: RemoteRead,
pub bucket_object: RemoteRead,
pub bucket_prefix: Option<RemoteRead>,
pub many_files: bool,
pub lines: Option<Lines>,
pub tables: Option<Tables>,
pub summary: Summary,
pub declares_types: bool,
pub conversion: Option<Conversion>,
}Expand description
What datui knows of a format without reading a file of it.
Fields§
§name: &'static strThe name --format takes and the home screen counts (12 parquet). Lowercase
and singular, one per format rather than per extension.
title: &'static strWhat the format is called in a sentence: SQLite, Arrow IPC.
extensions: &'static [&'static str]The extensions that say it, lowercase and without the dot. The first is the one a glob over a directory of it names.
name_endings: &'static [&'static str]Whole-name endings that say it before the extension does:
model.safetensors.index.json is SafeTensors, read as the shards it names.
read: ReadModeHow a file of it on disk, as its extension says, is read.
compressed: CompressedHow a compressed file of it is read.
stream: Option<ReadMode>How an Arrow IPC stream of it is read, for the one format that has streams.
http: RemoteReadHow one HTTP(S) file of it is read.
bucket_object: RemoteReadHow one object of it in a bucket is read.
bucket_prefix: Option<RemoteRead>How a bucket prefix or glob of it is read as one table, or None when it is
browsed into and opened an object at a time.
many_files: boolWhether many files of it are read as one table.
lines: Option<Lines>How a line of it is read, for text read a line at a time: what --follow reads
as it grows.
tables: Option<Tables>The tables a file of it can hold, and how one is picked. The home screen lists
them as places inside the file (shop.db/orders, run.npz/weights) that
recents record and --table names.
summary: SummaryWhat the Info panel shows of a file of it besides the Schema tab.
declares_types: boolWhether a file of it declares its columns’ types, which the Schema tab then calls known rather than inferred.
conversion: Option<Conversion>What the loading screen and the footer say while a file of it is read into files of its own before it is scanned.