pub struct PathOverrides {
pub config_dir: Option<String>,
pub cache_dir: Option<String>,
}Expand description
Directory overrides installed BEFORE anything reads config.toml.
These live in their own OnceLock because of an ordering hazard: main
resolves the interface language during a pre-parse pass that runs before
init, and language resolution reads the XDG key i18n.lang — which
means it reads config.toml, which means it needs --config-dir already.
Folding these into RuntimeOverrides would force init to run first,
and since both are first-wins OnceLocks the later call would be dropped.
Fields§
§config_dir: Option<String>CLI --config-dir: directory holding config.toml.
cache_dir: Option<String>CLI --cache-dir: root for lock files, models and cache artifacts.
Trait Implementations§
Source§impl Clone for PathOverrides
impl Clone for PathOverrides
Source§fn clone(&self) -> PathOverrides
fn clone(&self) -> PathOverrides
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PathOverrides
impl Debug for PathOverrides
Source§impl Default for PathOverrides
impl Default for PathOverrides
Source§fn default() -> PathOverrides
fn default() -> PathOverrides
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PathOverrides
impl RefUnwindSafe for PathOverrides
impl Send for PathOverrides
impl Sync for PathOverrides
impl Unpin for PathOverrides
impl UnsafeUnpin for PathOverrides
impl UnwindSafe for PathOverrides
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more