pub struct StepResult {
pub step_name: String,
pub success: bool,
pub output: Option<Value>,
pub error: Option<String>,
pub duration_ms: u64,
pub retry_attempts: usize,
}Expand description
Result of executing a single step.
Fields§
§step_name: StringName of the step that was executed
success: boolWhether the step completed successfully
output: Option<Value>Output data from the step
error: Option<String>Error message if the step failed
duration_ms: u64Duration of the step execution in milliseconds
retry_attempts: usizeNumber of retry attempts made
Implementations§
Source§impl StepResult
impl StepResult
Sourcepub fn success(
step_name: impl Into<String>,
output: Option<Value>,
duration_ms: u64,
) -> Self
pub fn success( step_name: impl Into<String>, output: Option<Value>, duration_ms: u64, ) -> Self
Create a successful step result.
Sourcepub fn failure(
step_name: impl Into<String>,
error: impl Into<String>,
duration_ms: u64,
) -> Self
pub fn failure( step_name: impl Into<String>, error: impl Into<String>, duration_ms: u64, ) -> Self
Create a failed step result.
Sourcepub fn with_retry_attempts(self, attempts: usize) -> Self
pub fn with_retry_attempts(self, attempts: usize) -> Self
Set the number of retry attempts.
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
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 StepResult
impl Debug for StepResult
Source§impl<'de> Deserialize<'de> for StepResult
impl<'de> Deserialize<'de> for StepResult
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 StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnsafeUnpin for StepResult
impl UnwindSafe for StepResult
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