pub struct Run {
pub when: Vec<When>,
pub commands: Vec<Command>,
pub subtasks: Vec<SubTask>,
pub set_environment: HashMap<String, Option<String>>,
}Expand description
Runtime representation of a run item
Fields§
§when: Vec<When>Conditions that must be met
commands: Vec<Command>Commands to execute
subtasks: Vec<SubTask>Subtasks to execute
set_environment: HashMap<String, Option<String>>Environment variables to set
Implementations§
Source§impl Run
impl Run
Sourcepub fn from_config(config: Run) -> Self
pub fn from_config(config: Run) -> Self
Create from config
Sourcepub fn dependencies(&self) -> Vec<String>
pub fn dependencies(&self) -> Vec<String>
Get dependencies from this run item
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnwindSafe for Run
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