pub struct Env {
pub home: PathBuf,
pub config_dir: PathBuf,
pub config_file: PathBuf,
pub state_dir: PathBuf,
pub cwd: PathBuf,
pub session_cookie: Option<String>,
}Expand description
Where the tool reads and writes, and where it was invoked from.
Fields§
§home: PathBufThe user’s home directory, used to expand a leading ~ in templates.
config_dir: PathBufThe directory holding config.yaml and the base directory.
config_file: PathBufThe configuration file itself.
state_dir: PathBufWhere cached answers are kept.
cwd: PathBufThe directory the command was invoked from.
A session cookie supplied through the environment, which takes precedence over the one in the configuration file.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnsafeUnpin for Env
impl UnwindSafe for Env
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