pub enum LoopConfig {
ForEach {
source_step: String,
max_iterations: usize,
},
While {
condition: Condition,
max_iterations: usize,
},
Retry {
max_retries: usize,
backoff_ms: u64,
backoff_multiplier: f64,
},
}Expand description
A loop construct that can be attached to a workflow step.
Variants§
ForEach
Iterate over items from a JSON array in a previous step’s output.
Fields
While
Repeat while a condition is true.
Fields
Retry
Retry a step N times with configurable backoff.
Trait Implementations§
Source§impl Clone for LoopConfig
impl Clone for LoopConfig
Source§fn clone(&self) -> LoopConfig
fn clone(&self) -> LoopConfig
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 moreSource§impl Debug for LoopConfig
impl Debug for LoopConfig
Source§impl<'de> Deserialize<'de> for LoopConfig
impl<'de> Deserialize<'de> for LoopConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LoopConfig
impl PartialEq for LoopConfig
Source§impl Serialize for LoopConfig
impl Serialize for LoopConfig
impl StructuralPartialEq for LoopConfig
Auto Trait Implementations§
impl Freeze for LoopConfig
impl RefUnwindSafe for LoopConfig
impl Send for LoopConfig
impl Sync for LoopConfig
impl Unpin for LoopConfig
impl UnsafeUnpin for LoopConfig
impl UnwindSafe for LoopConfig
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