pub struct SagaPlan {
pub saga_id: Vec<u8>,
pub steps: Vec<SagaStep>,
}Expand description
Ordered cross-shard write plan executed by run_saga.
Fields§
§saga_id: Vec<u8>Unique saga id (journal key / idempotency scope).
steps: Vec<SagaStep>Steps executed in order; compensators run in reverse on forward failure.
Trait Implementations§
impl Eq for SagaPlan
impl StructuralPartialEq for SagaPlan
Auto Trait Implementations§
impl Freeze for SagaPlan
impl RefUnwindSafe for SagaPlan
impl Send for SagaPlan
impl Sync for SagaPlan
impl Unpin for SagaPlan
impl UnsafeUnpin for SagaPlan
impl UnwindSafe for SagaPlan
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