pub struct Scope {
pub parent: String,
pub parent_step: Option<Step>,
pub siblings: BTreeMap<String, Step>,
pub item: Option<Value>,
pub index: Option<usize>,
pub batch: Option<usize>,
pub iteration: Option<usize>,
pub branch: Option<String>,
}Expand description
The scope a nested step runs in.
Fields§
§parent: StringThe scoped parent id (each[3], par{a}, loop[2], sub).
parent_step: Option<Step>The parent step’s definition (for on_error, siblings…).
siblings: BTreeMap<String, Step>§item: Option<Value>§index: Option<usize>§batch: Option<usize>§iteration: Option<usize>§branch: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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