pub struct SubWorkflowConfig {
pub workflow: Workflow,
pub input_from: Vec<String>,
pub foreach: Option<String>,
pub parallel: bool,
pub max_parallel: Option<usize>,
pub on_item_error: ForeachErrorMode,
}Expand description
Configuration for a SubWorkflow node (nested workflow composition).
Fields§
§workflow: WorkflowThe nested workflow to execute.
input_from: Vec<String>IDs of upstream nodes whose output is used as input.
foreach: Option<String>JSON pointer path to extract an array from upstream output (e.g. “/issues”). When set, the sub-workflow is executed once per array element.
parallel: boolWhether to run foreach iterations in parallel. Default: false.
max_parallel: Option<usize>Maximum number of concurrent iterations when parallel=true. Default: unbounded (all items at once).
on_item_error: ForeachErrorModeHow to handle errors in individual foreach items.
Trait Implementations§
Source§impl Clone for SubWorkflowConfig
impl Clone for SubWorkflowConfig
Source§fn clone(&self) -> SubWorkflowConfig
fn clone(&self) -> SubWorkflowConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SubWorkflowConfig
impl !RefUnwindSafe for SubWorkflowConfig
impl Send for SubWorkflowConfig
impl Sync for SubWorkflowConfig
impl Unpin for SubWorkflowConfig
impl UnsafeUnpin for SubWorkflowConfig
impl !UnwindSafe for SubWorkflowConfig
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