pub struct LayerOpts {
pub skip_system: bool,
pub skip_user: bool,
pub system_override: Option<PathBuf>,
pub user_override: Option<PathBuf>,
}Fields§
§skip_system: bool§skip_user: bool§system_override: Option<PathBuf>§user_override: Option<PathBuf>Implementations§
Source§impl LayerOpts
impl LayerOpts
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Build options purely from env vars; the CLI-flag overlay
(merge_cli_flags) is applied separately in main.rs.
Sourcepub fn merge_cli_flags(
self,
no_config: bool,
no_system_config: bool,
no_user_config: bool,
) -> Self
pub fn merge_cli_flags( self, no_config: bool, no_system_config: bool, no_user_config: bool, ) -> Self
Apply the three CLI flags onto an existing LayerOpts. Flag wins over env-var override (see spec §“Path resolution”).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerOpts
impl RefUnwindSafe for LayerOpts
impl Send for LayerOpts
impl Sync for LayerOpts
impl Unpin for LayerOpts
impl UnsafeUnpin for LayerOpts
impl UnwindSafe for LayerOpts
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