pub struct AuthoredStep<'a> {
pub path: String,
pub node: &'a Value,
pub kind: StepKind,
pub depth: usize,
}Expand description
One node of an authored tasks tree.
Fields§
§path: StringThe coordinate the author typed, rooted at the workflow: tasks[1],
tasks[1].tasks[0]. Append your own field segment to point at a
property — format!("{}.id", step.path).
node: &'a ValueThe element itself, borrowed from the input.
kind: StepKindWhether this is a task, a group, or a group too deeply nested.
depth: usizeEnclosing groups. 0 for a top-level element.
Trait Implementations§
Source§impl<'a> Clone for AuthoredStep<'a>
impl<'a> Clone for AuthoredStep<'a>
Source§fn clone(&self) -> AuthoredStep<'a>
fn clone(&self) -> AuthoredStep<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for AuthoredStep<'a>
impl<'a> RefUnwindSafe for AuthoredStep<'a>
impl<'a> Send for AuthoredStep<'a>
impl<'a> Sync for AuthoredStep<'a>
impl<'a> Unpin for AuthoredStep<'a>
impl<'a> UnsafeUnpin for AuthoredStep<'a>
impl<'a> UnwindSafe for AuthoredStep<'a>
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