pub struct StepExecutionResult {
pub step_number: u32,
pub success: bool,
pub data: Option<Value>,
pub error: Option<String>,
pub duration_ms: u64,
}Expand description
Represents a step result from execution
Contains the outcome of executing a single saga step, including:
- Whether execution succeeded or failed
- Result data if successful (entity with key fields and updated values)
- Error details if failed
- Execution metrics (duration)
The result data is stored and available for subsequent steps to reference via result chaining.
Fields§
§step_number: u32Step number that executed (1-indexed)
success: boolWhether step succeeded (true) or failed (false)
data: Option<Value>Result data if successful
Contains:
__typename: Entity type- Key fields (id, etc.)
- Mutation output fields
- Timestamps
error: Option<String>Error message if failed
Includes:
- Error type (timeout, network, mutation failed, etc.)
- Subgraph context
- Suggestion for resolution
duration_ms: u64Execution duration in milliseconds
Measured from step start to completion (or failure) Useful for performance monitoring
Trait Implementations§
Source§impl Clone for StepExecutionResult
impl Clone for StepExecutionResult
Source§fn clone(&self) -> StepExecutionResult
fn clone(&self) -> StepExecutionResult
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 moreAuto Trait Implementations§
impl Freeze for StepExecutionResult
impl RefUnwindSafe for StepExecutionResult
impl Send for StepExecutionResult
impl Sync for StepExecutionResult
impl Unpin for StepExecutionResult
impl UnsafeUnpin for StepExecutionResult
impl UnwindSafe for StepExecutionResult
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