pub struct ResolveOptions {
pub use_system_environment: bool,
pub allow_unresolved: bool,
}Expand description
Options controlling the resolve phase.
Construct via ResolveOptions::defaults() and chain with_* methods.
Distinct from the internal resolver::InternalResolveOptions which
also carries env / base_dir / include_stack for the resolver module.
Translation from ResolveOptions to InternalResolveOptions happens
at the Config::resolve boundary (T9).
Fields§
§use_system_environment: boolWhen true, substitution paths not satisfied within the config tree
fall back to process environment variables. Default: true.
allow_unresolved: boolWhen true, required-but-unsatisfied substitutions are left as
placeholders instead of returning a ResolveError. Default: false.
Implementations§
Source§impl ResolveOptions
impl ResolveOptions
Sourcepub fn defaults() -> Self
pub fn defaults() -> Self
Return ResolveOptions with Lightbend-equivalent defaults:
use_system_environment = true, allow_unresolved = false.
Sourcepub fn with_use_system_environment(self, b: bool) -> Self
pub fn with_use_system_environment(self, b: bool) -> Self
Return a copy with use_system_environment set to b.
Sourcepub fn with_allow_unresolved(self, b: bool) -> Self
pub fn with_allow_unresolved(self, b: bool) -> Self
Return a copy with allow_unresolved set to b.
Trait Implementations§
Source§impl Clone for ResolveOptions
impl Clone for ResolveOptions
Source§fn clone(&self) -> ResolveOptions
fn clone(&self) -> ResolveOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more