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§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§impl Serialize for ForloopFlow
impl Serialize for ForloopFlow
impl StructuralPartialEq for ForloopFlow
Auto Trait Implementations§
impl Freeze for ForloopFlow
impl RefUnwindSafe for ForloopFlow
impl Send for ForloopFlow
impl Sync for ForloopFlow
impl Unpin for ForloopFlow
impl UnwindSafe for ForloopFlow
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)