pub struct LoadOptions {
pub merge_strategy: MergeStrategy,
pub fail_fast: bool,
pub ignore_optional_missing: bool,
pub validate: bool,
pub max_depth: usize,
pub extensions: Vec<String>,
pub env_prefix: String,
pub base_name: String,
pub cache_enabled: bool,
pub search_paths: Vec<PathBuf>,
pub remote_timeout_secs: u64,
}Expand description
Options for loading configuration.
Controls how configuration sources are loaded, merged, and processed.
Fields§
§merge_strategy: MergeStrategyStrategy for merging multiple sources.
fail_fast: boolWhether to stop on first error.
ignore_optional_missing: boolWhether to ignore missing optional sources.
validate: boolWhether to validate configuration after loading.
max_depth: usizeMaximum depth for directory traversal.
extensions: Vec<String>File extensions to search.
env_prefix: StringEnvironment variable prefix.
base_name: StringBase name for configuration files.
cache_enabled: boolWhether to enable caching.
search_paths: Vec<PathBuf>Custom search paths.
remote_timeout_secs: u64Timeout for remote sources (seconds).
Implementations§
Source§impl LoadOptions
impl LoadOptions
Sourcepub fn builder() -> LoadOptionsBuilder
pub fn builder() -> LoadOptionsBuilder
Create a builder for constructing LoadOptions.
Sourcepub const fn is_cache_enabled(&self) -> bool
pub const fn is_cache_enabled(&self) -> bool
Check if caching is enabled.
Sourcepub const fn is_fail_fast(&self) -> bool
pub const fn is_fail_fast(&self) -> bool
Check if fail-fast mode is enabled.
Trait Implementations§
Source§impl Clone for LoadOptions
impl Clone for LoadOptions
Source§fn clone(&self) -> LoadOptions
fn clone(&self) -> LoadOptions
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 Debug for LoadOptions
impl Debug for LoadOptions
Source§impl Default for LoadOptions
impl Default for LoadOptions
Source§impl<'de> Deserialize<'de> for LoadOptions
impl<'de> Deserialize<'de> for LoadOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LoadOptions
impl PartialEq for LoadOptions
Source§impl Serialize for LoadOptions
impl Serialize for LoadOptions
impl Eq for LoadOptions
impl StructuralPartialEq for LoadOptions
Auto Trait Implementations§
impl Freeze for LoadOptions
impl RefUnwindSafe for LoadOptions
impl Send for LoadOptions
impl Sync for LoadOptions
impl Unpin for LoadOptions
impl UnsafeUnpin for LoadOptions
impl UnwindSafe for LoadOptions
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