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
JsonRonTomlYaml
Methods
impl Format[src]
impl Formatpub 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 Formatfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Format[src]
impl Clone for Formatfn clone(&self) -> Format[src]
fn clone(&self) -> FormatReturns 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