pub struct Config { /* private fields */ }Expand description
A Config used when loading environment properties.
Implementations§
Source§impl Config
impl Config
Source§impl Config
impl Config
Sourcepub fn set_common(&mut self, val: Option<bool>)
pub fn set_common(&mut self, val: Option<bool>)
Should we read from a common.env file?
Sourcepub fn set_recursive(&mut self, val: Option<bool>)
pub fn set_recursive(&mut self, val: Option<bool>)
Should we recursively search up directories for the files?
Sourcepub fn set_base_dir(&mut self, val: Option<PathBuf>)
pub fn set_base_dir(&mut self, val: Option<PathBuf>)
The base directory to look for files.
Sourcepub fn set_comments(&mut self, val: Option<bool>)
pub fn set_comments(&mut self, val: Option<bool>)
Does the property file have comments?
Sourcepub fn set_comment_char(&mut self, val: Option<char>)
pub fn set_comment_char(&mut self, val: Option<char>)
The comment character.
Trait Implementations§
Source§impl TryFrom<Config> for Environment
impl TryFrom<Config> for Environment
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more