pub struct ChainResult {
pub success: bool,
pub steps_executed: usize,
pub steps_succeeded: usize,
pub steps_failed: usize,
pub steps_skipped: usize,
pub step_results: Vec<ChainStepResult>,
pub extractions: Vec<Value>,
pub duration_ms: u64,
pub total_usage: AutomationUsage,
pub final_url: Option<String>,
pub error: Option<String>,
}Expand description
Result of an action chain execution.
Fields§
§success: boolWhether all required steps completed successfully.
steps_executed: usizeNumber of steps executed.
steps_succeeded: usizeNumber of steps that succeeded.
steps_failed: usizeNumber of steps that failed.
steps_skipped: usizeNumber of steps skipped (due to conditions).
step_results: Vec<ChainStepResult>Results from each step.
extractions: Vec<Value>Extracted data from steps with extraction.
duration_ms: u64Total duration in milliseconds.
total_usage: AutomationUsageTotal token usage.
final_url: Option<String>Final URL after chain execution.
error: Option<String>Error that caused chain to stop (if any).
Implementations§
Source§impl ChainResult
impl ChainResult
Sourcepub fn add_step(&mut self, result: ChainStepResult)
pub fn add_step(&mut self, result: ChainStepResult)
Add a step result.
Sourcepub fn with_final_url(self, url: impl Into<String>) -> Self
pub fn with_final_url(self, url: impl Into<String>) -> Self
Set final URL.
Sourcepub fn with_error(self, error: impl Into<String>) -> Self
pub fn with_error(self, error: impl Into<String>) -> Self
Set error.
Trait Implementations§
Source§impl Clone for ChainResult
impl Clone for ChainResult
Source§fn clone(&self) -> ChainResult
fn clone(&self) -> ChainResult
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 ChainResult
impl Debug for ChainResult
Source§impl Default for ChainResult
impl Default for ChainResult
Source§fn default() -> ChainResult
fn default() -> ChainResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChainResult
impl<'de> Deserialize<'de> for ChainResult
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 ChainResult
impl RefUnwindSafe for ChainResult
impl Send for ChainResult
impl Sync for ChainResult
impl Unpin for ChainResult
impl UnwindSafe for ChainResult
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