#[non_exhaustive]pub struct ExpandOptions {
pub rules: ReferenceRules,
pub scope: ExpandScope,
pub lookup_order: LookupOrder,
pub unresolved: Unresolved,
pub max_depth: usize,
pub max_value_bytes: usize,
}Expand description
Explicit resolution policy and resource limits.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rules: ReferenceRulesQuote, escape and operator eligibility rules.
scope: ExpandScopeSequential or whole-file bindings.
lookup_order: LookupOrderCaller lookup versus file binding precedence.
unresolved: UnresolvedTreatment of an eligible reference with no value.
max_depth: usizeMaximum active binding and reference nesting depth.
max_value_bytes: usizeMaximum resolved bytes for one entry value.
Implementations§
Source§impl ExpandOptions
impl ExpandOptions
Sourcepub const fn with_rules(self, value: ReferenceRules) -> Self
pub const fn with_rules(self, value: ReferenceRules) -> Self
Use the given reference eligibility rules.
Sourcepub const fn with_scope(self, value: ExpandScope) -> Self
pub const fn with_scope(self, value: ExpandScope) -> Self
Use the given resolution scope.
Sourcepub const fn with_lookup_order(self, value: LookupOrder) -> Self
pub const fn with_lookup_order(self, value: LookupOrder) -> Self
Use the given lookup precedence.
Sourcepub const fn with_unresolved(self, value: Unresolved) -> Self
pub const fn with_unresolved(self, value: Unresolved) -> Self
Use the given unresolved-reference policy.
Sourcepub const fn with_max_depth(self, value: usize) -> Self
pub const fn with_max_depth(self, value: usize) -> Self
Set the maximum nesting depth.
Sourcepub const fn with_max_value_bytes(self, value: usize) -> Self
pub const fn with_max_value_bytes(self, value: usize) -> Self
Set the maximum resolved value size.
Source§impl ExpandOptions
impl ExpandOptions
Sourcepub const fn portable() -> Self
pub const fn portable() -> Self
Portable-style basic variables with file-first sequential bindings.
Sourcepub const fn compose() -> Self
pub const fn compose() -> Self
Compose-style operators and nesting with file-first sequential bindings.
Sourcepub const fn dotenv_expand() -> Self
pub const fn dotenv_expand() -> Self
dotenv-expand-style rules with file-first sequential bindings.
Trait Implementations§
Source§impl Clone for ExpandOptions
impl Clone for ExpandOptions
impl Copy for ExpandOptions
Source§impl Debug for ExpandOptions
impl Debug for ExpandOptions
Source§impl Default for ExpandOptions
impl Default for ExpandOptions
impl Eq for ExpandOptions
Source§impl Hash for ExpandOptions
impl Hash for ExpandOptions
Source§impl PartialEq for ExpandOptions
impl PartialEq for ExpandOptions
impl StructuralPartialEq for ExpandOptions
Auto Trait Implementations§
impl Freeze for ExpandOptions
impl RefUnwindSafe for ExpandOptions
impl Send for ExpandOptions
impl Sync for ExpandOptions
impl Unpin for ExpandOptions
impl UnsafeUnpin for ExpandOptions
impl UnwindSafe for ExpandOptions
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