pub struct SettingsPaths {
pub user: PathBuf,
pub user_local: PathBuf,
pub project: Option<PathBuf>,
pub project_local: Option<PathBuf>,
}Expand description
Absolute paths the loader would read, regardless of which files
exist. Returned alongside Settings so diagnostics can show
“the project layer would come from <path>” even when the file
isn’t there.
Fields§
§user: PathBuf§user_local: PathBuf§project: Option<PathBuf>§project_local: Option<PathBuf>Trait Implementations§
Source§impl Clone for SettingsPaths
impl Clone for SettingsPaths
Source§fn clone(&self) -> SettingsPaths
fn clone(&self) -> SettingsPaths
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 SettingsPaths
impl Debug for SettingsPaths
Auto Trait Implementations§
impl Freeze for SettingsPaths
impl RefUnwindSafe for SettingsPaths
impl Send for SettingsPaths
impl Sync for SettingsPaths
impl Unpin for SettingsPaths
impl UnsafeUnpin for SettingsPaths
impl UnwindSafe for SettingsPaths
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