#[non_exhaustive]pub struct IncludeOptions {
pub mode: IncludeMode,
pub context: IncludeContext,
}Expand description
Options for ConfigSet::merge_file.
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.mode: IncludeModeWhether include directives are expanded.
context: IncludeContextContext for resolving include paths and evaluating [includeIf] conditions.
Implementations§
Source§impl IncludeOptions
impl IncludeOptions
Sourcepub fn with_mode(self, mode: IncludeMode) -> Self
pub fn with_mode(self, mode: IncludeMode) -> Self
Sets mode.
Sourcepub fn with_context(self, context: IncludeContext) -> Self
pub fn with_context(self, context: IncludeContext) -> Self
Sets context.
Trait Implementations§
Source§impl Clone for IncludeOptions
impl Clone for IncludeOptions
Source§impl Debug for IncludeOptions
impl Debug for IncludeOptions
Auto Trait Implementations§
impl Forget for IncludeOptions
impl Freeze for IncludeOptions
impl RefUnwindSafe for IncludeOptions
impl Send for IncludeOptions
impl Sync for IncludeOptions
impl Unpin for IncludeOptions
impl UnsafeUnpin for IncludeOptions
impl UnwindSafe for IncludeOptions
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