#[non_exhaustive]pub enum Format {
Json,
Yaml,
Toml,
Msgpack,
}
Expand description
The set of input and output formats supported by xt.
Support for each format comes largely from external crates, with some additional preprocessing by xt for select formats. The crate selection for each format is not stable, and is documented for informational purposes only.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Json
The JSON format as interpreted by serde_json
.
This format supports multi-document translation and streaming input.
Yaml
The YAML 1.2 format as interpreted by serde_yaml
.
This format supports multi-document translation and streaming input.
Toml
The TOML format as interpreted by toml
.
This format supports single-document translation only, and as such does not support streaming input.
Msgpack
The MessagePack format as interpreted by rmp_serde
.
This format supports multi-document translation and streaming input.