pub struct Workflow {
pub strings: WorkflowStrings,
/* private fields */
}
Expand description
Contains all the information about a workflow, in a form that can be used to generate a traversal to run.
Fields§
§strings: WorkflowStrings
All strings defined in the config file
Implementations§
Source§impl Workflow
impl Workflow
Sourcepub fn load(&mut self, blocks: Vec<Item<'_>>, config_dir: &Path) -> Result<()>
pub fn load(&mut self, blocks: Vec<Item<'_>>, config_dir: &Path) -> Result<()>
Load the given ast representations of blocks into this Workflow
.
config_dir
is used to interpret relative paths to modules.
Sourcepub fn get_module_path(&self, module: ModuleId) -> Result<&str>
pub fn get_module_path(&self, module: ModuleId) -> Result<&str>
Get a string containing the path to the module with the given id.
Sourcepub fn get_task(&self, task: AbstractTaskId) -> Result<&Task, Error>
pub fn get_task(&self, task: AbstractTaskId) -> Result<&Task, Error>
Get the task with the given id.
Sourcepub fn get_value(&self, value: AbstractValueId) -> Result<&Value, Error>
pub fn get_value(&self, value: AbstractValueId) -> Result<&Value, Error>
Get the value with the given id.
pub fn get_config_value(&self, ident: IdentId) -> Option<AbstractValueId>
Sourcepub fn num_values(&self) -> usize
pub fn num_values(&self) -> usize
Total number of values defined (including task variables and config values).
Sourcepub fn get_plan(&self, plan_name: IdentId) -> Result<&Plan, Error>
pub fn get_plan(&self, plan_name: IdentId) -> Result<&Plan, Error>
Get a reference to the plan defined with the given identifier.
Sourcepub fn parse_compact_branch_str(&mut self, s: &str) -> Result<BranchSpec>
pub fn parse_compact_branch_str(&mut self, s: &str) -> Result<BranchSpec>
Parse “compact” branch string (i.e. with “Baseline.baseline” standing in for baseline branches)
into a BranchSpec
.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Workflow
impl !RefUnwindSafe for Workflow
impl Send for Workflow
impl !Sync for Workflow
impl Unpin for Workflow
impl UnwindSafe for Workflow
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