pub struct Task {
pub vars: TaskVars<(IdentId, AbstractValueId)>,
pub code: LiteralId,
pub referenced_vars: Vec<IdentId>,
pub module: Option<ModuleId>,
pub exists: bool,
}
Expand description
Representation of a task defined in a workflow file.
Fields§
§vars: TaskVars<(IdentId, AbstractValueId)>
Inputs, Outputs and Params to this task (var name, value)
code: LiteralId
Id of string containing this task’s execution code
referenced_vars: Vec<IdentId>
List of var names referenced in this task’s code (for validation)
module: Option<ModuleId>
Optional id of module that this task should run in instead of its task directory
exists: bool
So we can tell if this task is real, or just a default:
Implementations§
Source§impl Task
impl Task
Sourcepub fn create(
block: TasklikeBlock<'_>,
strings: &mut WorkflowStrings,
values: &mut IdVec<AbstractValueId, Value>,
) -> Result<Self>
pub fn create( block: TasklikeBlock<'_>, strings: &mut WorkflowStrings, values: &mut IdVec<AbstractValueId, Value>, ) -> Result<Self>
Create a new task from its ast representation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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