pub struct ConfigPath(pub(crate) PathBuf);
Expand description
The configuration file path for the application.
The configuration file location is defined by the behavior of [get_config_file_or_default
].
Tuple Fields§
§0: PathBuf
Implementations§
Trait Implementations§
Source§impl AsRef<Path> for ConfigPath
impl AsRef<Path> for ConfigPath
Source§impl Clone for ConfigPath
impl Clone for ConfigPath
Source§fn clone(&self) -> ConfigPath
fn clone(&self) -> ConfigPath
Returns a copy 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 ConfigPath
impl Debug for ConfigPath
Source§impl Default for ConfigPath
impl Default for ConfigPath
Source§fn default() -> Self
fn default() -> Self
Returns the default ConfigPath
.
Uses [get_config_file_or_default
] to find the first usable configuration file path, or the
default if none is found.
Source§impl From<PathBuf> for ConfigPath
impl From<PathBuf> for ConfigPath
Auto Trait Implementations§
impl Freeze for ConfigPath
impl RefUnwindSafe for ConfigPath
impl Send for ConfigPath
impl Sync for ConfigPath
impl Unpin for ConfigPath
impl UnwindSafe for ConfigPath
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