Enum Format Copy item path Source #[non_exhaustive]
pub enum Format {
Json,
Msgpack,
Toml,
Yaml,
}
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.
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.
The JSON format as interpreted by serde_json
.
This format supports multi-document translation and streaming input.
The MessagePack format as interpreted by rmp_serde
.
This format supports multi-document translation and streaming input.
The TOML format as interpreted by toml
.
This format supports single-document translation only, and as such does
not support streaming input.
The YAML 1.2 format as interpreted by serde_yaml
.
This format supports multi-document translation and streaming input.
Performs copy-assignment from
source
.
Read more Formats the value using the given formatter.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dest
.
Read more Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String
.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.