pub struct DependentStep {
pub id: String,
pub action: Value,
pub depends_on: Vec<String>,
pub blocks: Vec<String>,
pub description: Option<String>,
}Expand description
A step in a dependency chain.
Fields§
§id: StringUnique identifier for this step.
action: ValueThe action to execute (as JSON value).
depends_on: Vec<String>IDs of steps that must complete before this one can start.
blocks: Vec<String>IDs of steps that this step blocks (computed from depends_on).
description: Option<String>Optional description for logging/debugging.
Implementations§
Source§impl DependentStep
impl DependentStep
Sourcepub fn depends_on(self, step_id: impl Into<String>) -> Self
pub fn depends_on(self, step_id: impl Into<String>) -> Self
Add a dependency on another step.
Sourcepub fn depends_on_all(
self,
step_ids: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn depends_on_all( self, step_ids: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Add multiple dependencies.
Sourcepub fn with_description(self, desc: impl Into<String>) -> Self
pub fn with_description(self, desc: impl Into<String>) -> Self
Add a description.
Sourcepub fn is_parallel_safe(&self) -> bool
pub fn is_parallel_safe(&self) -> bool
Check if this action is safe to run in parallel.
Parallel-safe actions are those that don’t mutate page state:
- Evaluate (read-only JS)
- Wait/WaitFor (timing)
- Screenshot (capture only)
Sequential actions (mutate state):
- Click, Fill, Navigate, etc.
Trait Implementations§
Source§impl Clone for DependentStep
impl Clone for DependentStep
Source§fn clone(&self) -> DependentStep
fn clone(&self) -> DependentStep
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 DependentStep
impl Debug for DependentStep
Source§impl<'de> Deserialize<'de> for DependentStep
impl<'de> Deserialize<'de> for DependentStep
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 DependentStep
impl RefUnwindSafe for DependentStep
impl Send for DependentStep
impl Sync for DependentStep
impl Unpin for DependentStep
impl UnwindSafe for DependentStep
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