pub struct LoopCondition {
pub condition: Expression,
pub body_tasks: Vec<String>,
pub max_iterations: usize,
}Expand description
Loop conditional structure.
Fields§
§condition: ExpressionLoop condition.
body_tasks: Vec<String>Tasks to execute in loop body.
max_iterations: usizeMaximum iterations (safety limit).
Implementations§
Source§impl LoopCondition
impl LoopCondition
Sourcepub fn new(
condition: Expression,
body_tasks: Vec<String>,
max_iterations: usize,
) -> Self
pub fn new( condition: Expression, body_tasks: Vec<String>, max_iterations: usize, ) -> Self
Create a new loop condition.
Sourcepub fn should_continue(&self, context: &ExpressionContext) -> Result<bool>
pub fn should_continue(&self, context: &ExpressionContext) -> Result<bool>
Evaluate the loop condition.
Sourcepub fn get_body_tasks(&self) -> Vec<String>
pub fn get_body_tasks(&self) -> Vec<String>
Get the tasks to execute in this iteration.
Trait Implementations§
Source§impl Clone for LoopCondition
impl Clone for LoopCondition
Source§fn clone(&self) -> LoopCondition
fn clone(&self) -> LoopCondition
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 LoopCondition
impl Debug for LoopCondition
Source§impl<'de> Deserialize<'de> for LoopCondition
impl<'de> Deserialize<'de> for LoopCondition
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
Auto Trait Implementations§
impl Freeze for LoopCondition
impl RefUnwindSafe for LoopCondition
impl Send for LoopCondition
impl Sync for LoopCondition
impl Unpin for LoopCondition
impl UnsafeUnpin for LoopCondition
impl UnwindSafe for LoopCondition
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