pub struct Modules {
pub init: Vec<String>,
pub unuse_path: bool,
pub shell: String,
pub shell_init: Option<String>,
pub eessi: Option<Eessi>,
pub package_env: BTreeMap<String, BTreeMap<String, String>>,
}Expand description
Environment modules.
Fields§
§init: Vec<String>Modules loaded, in order, after module purge in every EasyBuild phase and around stack shard, one name per entry, without white space. May be empty.
unuse_path: boolClears MODULEPATH after shell_init and before loading init, so the first init module needs an absolute path.
shell: StringPOSIX shell that runs the module wrapper, by name or by path: sh, bash, dash, ash, ksh, ksh93, mksh or yash.
shell_init: Option<String>File sourced before module is called, for shells that do not define it. It is sourced without set -e or set -u; a module call that fails still stops the step.
eessi: Option<Eessi>EESSI site layer.
package_env: BTreeMap<String, BTreeMap<String, String>>Environment per package name, [modules.package_env.<Name>], exported for lines of that package.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Modules
impl<'de> Deserialize<'de> for Modules
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Modules
Auto Trait Implementations§
impl Freeze for Modules
impl RefUnwindSafe for Modules
impl Send for Modules
impl Sync for Modules
impl Unpin for Modules
impl UnwindSafe for Modules
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