pub enum LoopType {
ForEach {
collection_path: String,
item_variable: String,
index_variable: Option<String>,
body_expression: String,
parallel: bool,
max_concurrency: Option<usize>,
},
While {
condition: String,
body_expression: String,
counter_variable: Option<String>,
},
Repeat {
count: String,
body_expression: String,
index_variable: Option<String>,
},
}Expand description
Types of loops supported
Variants§
ForEach
Iterate over a collection (like map/forEach)
Fields
While
Iterate while condition is true
Fields
Repeat
Repeat N times
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LoopType
impl<'de> Deserialize<'de> for LoopType
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 LoopType
impl RefUnwindSafe for LoopType
impl Send for LoopType
impl Sync for LoopType
impl Unpin for LoopType
impl UnwindSafe for LoopType
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