pub struct Settings { /* private fields */ }Expand description
A one-stop shop for all the environment-specific configuration for the Wick project.
Implementations§
source§impl Settings
impl Settings
sourcepub fn local(&self) -> &Directories
pub fn local(&self) -> &Directories
Local directories for wick to store and retrieve files.
sourcepub fn global(&self) -> &Directories
pub fn global(&self) -> &Directories
Global directories for wick to store and retrieve files.
sourcepub fn data(&self) -> &PathBuf
pub fn data(&self) -> &PathBuf
The global state directory wick uses to store data while running.
sourcepub fn config_dir(&self) -> &PathBuf
pub fn config_dir(&self) -> &PathBuf
The location to look for user configuration.
sourcepub fn configfile_basename(&self) -> &String
pub fn configfile_basename(&self) -> &String
The basename of the user configuration file.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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