pub struct RuntimePaths {
pub cwd: PathBuf,
pub global: RuntimeGlobalPaths,
pub in_git_repo: bool,
pub repo_root: Option<PathBuf>,
pub explicit_config_path: Option<PathBuf>,
pub explicit_registry: Option<String>,
pub explicit_registry_ref: Option<String>,
pub explicit_registry_section: Option<String>,
}Fields§
§cwd: PathBufthe current working directory, determined at runtime
global: RuntimeGlobalPathsthe global paths for config, cache, and state, determined at runtime
in_git_repo: boolwhether we are in a git repository, determined by looking for a .git directory in the current or parent directories
repo_root: Option<PathBuf>default is cwd, but updated if we detect a git repository root
explicit_config_path: Option<PathBuf>an optional explicit config path provided by the user, which overrides all other config sources if present
explicit_registry: Option<String>an optional explicit registry provided by the user, which overrides discovered registries if present
explicit_registry_ref: Option<String>an optional explicit registry ref (e.g. git tag or branch) provided by the user, which overrides the registry config if present
explicit_registry_section: Option<String>an optional explicit registry section provided by the user, which overrides discovered registry sections if present
Implementations§
Source§impl RuntimePaths
impl RuntimePaths
Trait Implementations§
Source§impl Clone for RuntimePaths
impl Clone for RuntimePaths
Source§fn clone(&self) -> RuntimePaths
fn clone(&self) -> RuntimePaths
Returns a duplicate of the value. Read more
1.0.0 · 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 RuntimePaths
impl Debug for RuntimePaths
Auto Trait Implementations§
impl Freeze for RuntimePaths
impl RefUnwindSafe for RuntimePaths
impl Send for RuntimePaths
impl Sync for RuntimePaths
impl Unpin for RuntimePaths
impl UnsafeUnpin for RuntimePaths
impl UnwindSafe for RuntimePaths
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