pub struct ConfigPath(pub(crate) PathBuf);
Expand description
The configuration file path for the application.
If the path exists and is a file, one of the following configuration file locations is used:
If none of the above is found, DEFAULT_CONFIG_FILE
is used (even if it doesn’t exist!).
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
.
If the path exists and is a file, one of the following configuration file locations is used:
If none of the above is found, DEFAULT_CONFIG_FILE
is used (even if it doesn’t exist!).
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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