pub struct ForloopFlow {
pub modules: Vec<FlowModule>,
pub iterator: Box<InputTransform>,
pub skip_failures: bool,
pub type: Type,
pub parallel: Option<bool>,
pub parallelism: Option<Box<InputTransform>>,
pub squash: Option<bool>,
}Expand description
ForloopFlow : Executes nested modules in a loop over an iterator. Inside the loop, use ‘flow_input.iter.value’ to access the current iteration value, and ‘flow_input.iter.index’ for the index. Supports parallel execution for better performance on I/O-bound operations
Fields§
§modules: Vec<FlowModule>Steps to execute for each iteration. These can reference the iteration value via ‘flow_input.iter.value’
iterator: Box<InputTransform>§skip_failures: boolIf true, iteration failures don’t stop the loop. Failed iterations return null
type: Type§parallel: Option<bool>If true, iterations run concurrently (faster for I/O-bound operations). Use with parallelism to control concurrency
parallelism: Option<Box<InputTransform>>§squash: Option<bool>Implementations§
Source§impl ForloopFlow
impl ForloopFlow
Sourcepub fn new(
modules: Vec<FlowModule>,
iterator: InputTransform,
skip_failures: bool,
type: Type,
) -> ForloopFlow
pub fn new( modules: Vec<FlowModule>, iterator: InputTransform, skip_failures: bool, type: Type, ) -> ForloopFlow
Executes nested modules in a loop over an iterator. Inside the loop, use ‘flow_input.iter.value’ to access the current iteration value, and ‘flow_input.iter.index’ for the index. Supports parallel execution for better performance on I/O-bound operations
Trait Implementations§
Source§impl Clone for ForloopFlow
impl Clone for ForloopFlow
Source§fn clone(&self) -> ForloopFlow
fn clone(&self) -> ForloopFlow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ForloopFlow
impl Debug for ForloopFlow
Source§impl Default for ForloopFlow
impl Default for ForloopFlow
Source§fn default() -> ForloopFlow
fn default() -> ForloopFlow
Source§impl<'de> Deserialize<'de> for ForloopFlow
impl<'de> Deserialize<'de> for ForloopFlow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ForloopFlow
impl PartialEq for ForloopFlow
Source§fn eq(&self, other: &ForloopFlow) -> bool
fn eq(&self, other: &ForloopFlow) -> bool
self and other values to be equal, and is used by ==.