pub struct ImportanceAssessmentConfigLoader;Expand description
Configuration loader for importance assessment pipeline
Implementations§
Source§impl ImportanceAssessmentConfigLoader
impl ImportanceAssessmentConfigLoader
Sourcepub fn load_from_file<P: AsRef<Path>>(
path: P,
) -> Result<ImportanceAssessmentConfig>
pub fn load_from_file<P: AsRef<Path>>( path: P, ) -> Result<ImportanceAssessmentConfig>
Load configuration from a TOML file
Sourcepub fn load_from_env() -> Result<ImportanceAssessmentConfig>
pub fn load_from_env() -> Result<ImportanceAssessmentConfig>
Load configuration from environment variables with defaults
Sourcepub fn load_with_fallback<P: AsRef<Path>>(
config_path: Option<P>,
) -> Result<ImportanceAssessmentConfig>
pub fn load_with_fallback<P: AsRef<Path>>( config_path: Option<P>, ) -> Result<ImportanceAssessmentConfig>
Load configuration with fallback: file -> env -> defaults
Sourcepub fn production_config() -> ImportanceAssessmentConfig
pub fn production_config() -> ImportanceAssessmentConfig
Create a production-ready configuration
Sourcepub fn development_config() -> ImportanceAssessmentConfig
pub fn development_config() -> ImportanceAssessmentConfig
Create a development-friendly configuration
Sourcepub fn export_to_file<P: AsRef<Path>>(
config: &ImportanceAssessmentConfig,
path: P,
) -> Result<()>
pub fn export_to_file<P: AsRef<Path>>( config: &ImportanceAssessmentConfig, path: P, ) -> Result<()>
Export configuration to TOML file
Auto Trait Implementations§
impl Freeze for ImportanceAssessmentConfigLoader
impl RefUnwindSafe for ImportanceAssessmentConfigLoader
impl Send for ImportanceAssessmentConfigLoader
impl Sync for ImportanceAssessmentConfigLoader
impl Unpin for ImportanceAssessmentConfigLoader
impl UnwindSafe for ImportanceAssessmentConfigLoader
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more