Enum config_struct::Format [−][src]
pub enum Format { Json, Ron, Toml, Yaml, }
Represents an input markup format for a config file.
The variants that exist correspond to the features that have been enabled.
For example, if the json-parsing
feature is not enabled, then the
Format::Json
variant will not exist.
Variants
Json
Ron
Toml
Yaml
Methods
impl Format
[src]
impl Format
pub fn from_filename(filename: &Path) -> Result<Self, GenerationError>
[src]
pub fn from_filename(filename: &Path) -> Result<Self, GenerationError>
Trait Implementations
impl Debug for Format
[src]
impl Debug for Format
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Format
[src]
impl Clone for Format
fn clone(&self) -> Format
[src]
fn clone(&self) -> Format
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Format
[src]
impl Copy for Format