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
sourceimpl Clone for FileFormat
impl Clone for FileFormat
sourcefn clone(&self) -> FileFormat
fn clone(&self) -> FileFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FileFormat
impl Debug for FileFormat
sourceimpl FileStoredFormat for FileFormat
impl FileStoredFormat for FileFormat
sourcefn file_extensions(&self) -> &'static [&'static str]
fn file_extensions(&self) -> &'static [&'static str]
Returns a vector of file extensions, for instance [yml, yaml]
.
sourceimpl Format for FileFormat
impl Format for FileFormat
sourceimpl Hash for FileFormat
impl Hash for FileFormat
sourceimpl PartialEq<FileFormat> for FileFormat
impl PartialEq<FileFormat> for FileFormat
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more