pub struct ConfigurationLoader { /* private fields */ }Expand description
Configuration loader with environment-specific layering
Implementations§
Source§impl ConfigurationLoader
impl ConfigurationLoader
Sourcepub fn with_environment(environment: ConfigEnvironment) -> Self
pub fn with_environment(environment: ConfigEnvironment) -> Self
Create configuration loader for specific environment
Sourcepub fn with_config_dir<P: Into<PathBuf>>(self, config_dir: P) -> Self
pub fn with_config_dir<P: Into<PathBuf>>(self, config_dir: P) -> Self
Set custom configuration directory
Sourcepub fn with_env_prefix<S: Into<String>>(self, prefix: S) -> Self
pub fn with_env_prefix<S: Into<String>>(self, prefix: S) -> Self
Set custom environment variable prefix
Sourcepub fn load(&self) -> Result<(Settings, ConfigurationSource)>
pub fn load(&self) -> Result<(Settings, ConfigurationSource)>
Load configuration with environment-specific layering
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigurationLoader
impl RefUnwindSafe for ConfigurationLoader
impl Send for ConfigurationLoader
impl Sync for ConfigurationLoader
impl Unpin for ConfigurationLoader
impl UnwindSafe for ConfigurationLoader
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more