Struct vidar::Config
[−]
pub struct Config { /* fields omitted */ }
A Config
used when loading environment properties.
Methods
impl Config
fn kind(&self) -> &Kind
The environment Kind
we are loading.
fn common(&self) -> &Option<bool>
Should we read from a common.env
file?
fn recursive(&self) -> &Option<bool>
Should we recursively search up directories for the files?
fn base_dir(&self) -> &Option<PathBuf>
The base directory to look for files.
fn comments(&self) -> &Option<bool>
Does the property file have comments?
fn comment_char(&self) -> &Option<char>
The comment character.
impl Config
fn set_kind(&mut self, val: Kind)
The environment Kind
we are loading.
fn set_common(&mut self, val: Option<bool>)
Should we read from a common.env
file?
fn set_recursive(&mut self, val: Option<bool>)
Should we recursively search up directories for the files?
fn set_base_dir(&mut self, val: Option<PathBuf>)
The base directory to look for files.
fn set_comments(&mut self, val: Option<bool>)
Does the property file have comments?
fn set_comment_char(&mut self, val: Option<char>)
The comment character.
impl Config
[src]
Trait Implementations
impl Clone for Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Config
[src]
impl Eq for Config
[src]
impl PartialEq for Config
[src]
fn eq(&self, __arg_0: &Config) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Config) -> bool
This method tests for !=
.