pub struct StepConfigSubstitutor;Expand description
Handles parameter substitution in workflow step configurations
Implementations§
Source§impl StepConfigSubstitutor
impl StepConfigSubstitutor
Sourcepub fn substitute_in_workflow(
workflow: &mut Workflow,
parameters: &HashMap<String, Value>,
) -> WorkflowResult<()>
pub fn substitute_in_workflow( workflow: &mut Workflow, parameters: &HashMap<String, Value>, ) -> WorkflowResult<()>
Substitute parameters in all step configurations
Replaces all parameter references (${param_name}) in step configurations with their provided values. Handles nested parameter references and validates all parameters are provided at execution time.
Sourcepub fn substitute_in_step(
step: &mut WorkflowStep,
parameters: &HashMap<String, Value>,
) -> WorkflowResult<()>
pub fn substitute_in_step( step: &mut WorkflowStep, parameters: &HashMap<String, Value>, ) -> WorkflowResult<()>
Substitute parameters in a single step’s configuration
Sourcepub fn build_final_parameters(
workflow: &Workflow,
provided: &HashMap<String, Value>,
) -> WorkflowResult<HashMap<String, Value>>
pub fn build_final_parameters( workflow: &Workflow, provided: &HashMap<String, Value>, ) -> WorkflowResult<HashMap<String, Value>>
Build final parameter values with defaults
Merges provided values with defaults from parameter definitions
Auto Trait Implementations§
impl Freeze for StepConfigSubstitutor
impl RefUnwindSafe for StepConfigSubstitutor
impl Send for StepConfigSubstitutor
impl Sync for StepConfigSubstitutor
impl Unpin for StepConfigSubstitutor
impl UnwindSafe for StepConfigSubstitutor
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