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>) -> DependentStep
pub fn depends_on(self, step_id: impl Into<String>) -> DependentStep
Add a dependency on another step.
Sourcepub fn depends_on_all(
self,
step_ids: impl IntoIterator<Item = impl Into<String>>,
) -> DependentStep
pub fn depends_on_all( self, step_ids: impl IntoIterator<Item = impl Into<String>>, ) -> DependentStep
Add multiple dependencies.
Sourcepub fn with_description(self, desc: impl Into<String>) -> DependentStep
pub fn with_description(self, desc: impl Into<String>) -> DependentStep
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<DependentStep, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DependentStep, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DependentStep
impl Serialize for DependentStep
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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