Struct environment::Environment
source · pub struct Environment {
pub working_dir: DirRef,
pub variables: HashMap<String, String>,
}
Expand description
A structure that contains environment state for a given Task
or group of
Task
s.
A default environment can be created with the following state:
- The working directory is the
root
directory.
Fields§
§working_dir: DirRef
The “current working directory”, i.e., where a task’s relative path begins upon first execution.
variables: HashMap<String, String>
Implementations§
Trait Implementations§
source§impl Default for Environment
impl Default for Environment
source§fn default() -> Environment
fn default() -> Environment
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl !UnwindSafe for Environment
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