pub struct SagaStep {
pub key: Vec<u8>,
pub command: Vec<u8>,
pub compensate: Vec<u8>,
}Expand description
One forward step with a compensating keyed write on the same shard.
Fields§
§key: Vec<u8>Shard routing key (same shard for forward + compensate).
command: Vec<u8>Application-encoded forward command.
compensate: Vec<u8>Application-encoded compensate command (must be idempotent).
Trait Implementations§
impl Eq for SagaStep
impl StructuralPartialEq for SagaStep
Auto Trait Implementations§
impl Freeze for SagaStep
impl RefUnwindSafe for SagaStep
impl Send for SagaStep
impl Sync for SagaStep
impl Unpin for SagaStep
impl UnsafeUnpin for SagaStep
impl UnwindSafe for SagaStep
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