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]
.source§impl Format for FileFormat
impl Format for FileFormat
source§impl Hash for FileFormat
impl Hash for FileFormat
source§impl PartialEq<FileFormat> for FileFormat
impl PartialEq<FileFormat> for FileFormat
source§fn eq(&self, other: &FileFormat) -> bool
fn eq(&self, other: &FileFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FileFormat
impl Eq for FileFormat
impl StructuralEq for FileFormat
impl StructuralPartialEq for FileFormat
Auto Trait Implementations§
impl RefUnwindSafe for FileFormat
impl Send for FileFormat
impl Sync for FileFormat
impl Unpin for FileFormat
impl UnwindSafe for FileFormat
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