pub struct StepRecord {
pub name: String,
pub status: StepStatus,
pub started_at: Instant,
pub completed_at: Option<Instant>,
pub compensation_description: Option<String>,
}Expand description
Record of a step’s execution in the saga.
Fields§
§name: StringName of the step.
status: StepStatusCurrent status.
started_at: InstantWhen the step started executing.
completed_at: Option<Instant>When the step completed (execution or compensation).
compensation_description: Option<String>Description of compensation (if applicable).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StepRecord
impl RefUnwindSafe for StepRecord
impl Send for StepRecord
impl Sync for StepRecord
impl Unpin for StepRecord
impl UnsafeUnpin for StepRecord
impl UnwindSafe for StepRecord
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