Struct vidar::ConfigBuilder
[−]
pub struct ConfigBuilder { /* fields omitted */ }
Builder for Config
.
Methods
impl ConfigBuilder
[src]
fn kind<VALUE: Into<Kind>>(&mut self, value: VALUE) -> &mut Self
The environment Kind
we are loading.
fn common<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
Should we read from a common.env
file?
fn recursive<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
Should we recursively search up directories for the files?
fn base_dir<VALUE: Into<Option<PathBuf>>>(&mut self, value: VALUE) -> &mut Self
The base directory to look for files.
fn comments<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
Does the property file have comments?
fn comment_char<VALUE: Into<Option<char>>>(&mut self, value: VALUE) -> &mut Self
The comment character.
fn build(&self) -> Result<Config, String>
Trait Implementations
impl Default for ConfigBuilder
[src]
fn default() -> ConfigBuilder
Returns the "default value" for a type. Read more
impl Clone for ConfigBuilder
[src]
fn clone(&self) -> ConfigBuilder
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