pub struct LoadOptions {Show 16 fields
pub files: Option<Vec<String>>,
pub prefix: Option<String>,
pub defaults: Option<Map<String, Value>>,
pub sources: Option<Vec<String>>,
pub env: Option<String>,
pub schema: Option<DotlyteSchema>,
pub strict: bool,
pub interpolate_vars: bool,
pub overrides: Option<Map<String, Value>>,
pub debug: bool,
pub find_up: bool,
pub root_markers: Option<Vec<String>>,
pub cwd: Option<String>,
pub allow_all_env_vars: bool,
pub watch: bool,
pub debounce_ms: Option<u64>,
}Expand description
Options for the load() function.
Fields§
§files: Option<Vec<String>>Explicit list of files to load.
prefix: Option<String>Environment variable prefix to strip.
defaults: Option<Map<String, Value>>Default values (lowest priority).
sources: Option<Vec<String>>Custom source order.
env: Option<String>Environment name (loads config.{env}.yaml, .env.{env}).
schema: Option<DotlyteSchema>Schema for validation.
strict: boolStrict mode (reject unknown keys).
interpolate_vars: boolWhether to interpolate ${VAR} references.
overrides: Option<Map<String, Value>>Override values (highest priority, above env vars).
debug: boolEnable debug logging.
find_up: boolWalk up directories looking for config files.
root_markers: Option<Vec<String>>Root markers to stop upward walking (e.g., “.git”, “package.json”).
cwd: Option<String>Working directory (defaults to “.”).
allow_all_env_vars: boolInclude all env vars (skip blocklist).
watch: boolEnable file watching.
debounce_ms: Option<u64>Debounce interval in ms for file watcher.
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§fn default() -> LoadOptions
fn default() -> LoadOptions
Returns the “default value” for a type. Read more
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