pub struct ConfigManager {
pub verbose: bool,
}
Expand description
Configuration discovery and loading functionality.
Fields§
§verbose: bool
Whether to emit warnings for config issues
Implementations§
Source§impl ConfigManager
impl ConfigManager
Sourcepub fn load_file<P: AsRef<Path>>(
&self,
path: P,
) -> Result<FileConfig, DomainCheckError>
pub fn load_file<P: AsRef<Path>>( &self, path: P, ) -> Result<FileConfig, DomainCheckError>
Sourcepub fn discover_and_load(&self) -> Result<FileConfig, DomainCheckError>
pub fn discover_and_load(&self) -> Result<FileConfig, DomainCheckError>
Discover and load configuration files in precedence order.
Looks for configuration files in standard locations and merges them according to precedence rules.
§Returns
Merged configuration from all discovered files.
Auto Trait Implementations§
impl Freeze for ConfigManager
impl RefUnwindSafe for ConfigManager
impl Send for ConfigManager
impl Sync for ConfigManager
impl Unpin for ConfigManager
impl UnwindSafe for ConfigManager
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