pub struct ConfigBuilder { /* private fields */ }Expand description
Builder for Config.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn kind<VALUE: Into<Kind>>(&mut self, value: VALUE) -> &mut Self
pub fn kind<VALUE: Into<Kind>>(&mut self, value: VALUE) -> &mut Self
The environment Kind we are loading.
Sourcepub fn common<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
pub fn common<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
Should we read from a common.env file?
Sourcepub fn recursive<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn recursive<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
Should we recursively search up directories for the files?
Sourcepub fn base_dir<VALUE: Into<Option<PathBuf>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn base_dir<VALUE: Into<Option<PathBuf>>>( &mut self, value: VALUE, ) -> &mut Self
The base directory to look for files.
Sourcepub fn comments<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
pub fn comments<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
Does the property file have comments?
Sourcepub fn comment_char<VALUE: Into<Option<char>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn comment_char<VALUE: Into<Option<char>>>( &mut self, value: VALUE, ) -> &mut Self
The comment character.
Trait Implementations§
Source§impl Clone for ConfigBuilder
impl Clone for ConfigBuilder
Source§fn clone(&self) -> ConfigBuilder
fn clone(&self) -> ConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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