Enum config::FileFormat
source · pub enum FileFormat {
Toml,
Json,
Yaml,
Ini,
Ron,
Json5,
}
Expand description
File formats provided by the library.
Although it is possible to define custom formats using Format
trait it is recommended to use FileFormat if possible.
Variants§
Toml
TOML (parsed with toml)
Json
JSON (parsed with serde_json)
Yaml
YAML (parsed with yaml_rust)
Ini
INI (parsed with rust_ini)
Ron
RON (parsed with ron)
Json5
JSON5 (parsed with json5)
Trait Implementations§
source§impl Clone for FileFormat
impl Clone for FileFormat
source§fn clone(&self) -> FileFormat
fn clone(&self) -> FileFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FileFormat
impl Debug for FileFormat
source§impl FileStoredFormat for FileFormat
impl FileStoredFormat for FileFormat
source§fn file_extensions(&self) -> &'static [&'static str]
fn file_extensions(&self) -> &'static [&'static str]
Returns a vector of file extensions, for instance
[yml, yaml]
.