pub struct WorkflowSimulator { /* private fields */ }Expand description
Workflow simulator for dry-run executions
Implementations§
Source§impl WorkflowSimulator
impl WorkflowSimulator
Sourcepub fn with_mock_responses(self, responses: Vec<(String, Value)>) -> Self
pub fn with_mock_responses(self, responses: Vec<(String, Value)>) -> Self
Add mock responses for specific nodes
Sourcepub fn simulate_latencies(self, enabled: bool) -> Self
pub fn simulate_latencies(self, enabled: bool) -> Self
Set whether to simulate API latencies
Sourcepub fn estimate_costs(self, enabled: bool) -> Self
pub fn estimate_costs(self, enabled: bool) -> Self
Set whether to estimate costs
Sourcepub fn estimate_times(self, enabled: bool) -> Self
pub fn estimate_times(self, enabled: bool) -> Self
Set whether to estimate execution times
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkflowSimulator
impl RefUnwindSafe for WorkflowSimulator
impl Send for WorkflowSimulator
impl Sync for WorkflowSimulator
impl Unpin for WorkflowSimulator
impl UnwindSafe for WorkflowSimulator
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