pub struct CompensationContext {
pub trace_id: String,
pub circuit: String,
pub fault_kind: String,
pub fault_step: u64,
pub timestamp_ms: u64,
}Expand description
Runtime context delivered to compensation hooks.
The context is intentionally compact so hooks can map it to idempotent compensating actions in domain/infrastructure layers.
Fields§
§trace_id: String§circuit: String§fault_kind: String§fault_step: u64§timestamp_ms: u64Trait Implementations§
Source§impl Clone for CompensationContext
impl Clone for CompensationContext
Source§fn clone(&self) -> CompensationContext
fn clone(&self) -> CompensationContext
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 CompensationContext
impl Debug for CompensationContext
Source§impl<'de> Deserialize<'de> for CompensationContext
impl<'de> Deserialize<'de> for CompensationContext
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
Source§impl PartialEq for CompensationContext
impl PartialEq for CompensationContext
Source§impl Serialize for CompensationContext
impl Serialize for CompensationContext
impl Eq for CompensationContext
impl StructuralPartialEq for CompensationContext
Auto Trait Implementations§
impl Freeze for CompensationContext
impl RefUnwindSafe for CompensationContext
impl Send for CompensationContext
impl Sync for CompensationContext
impl Unpin for CompensationContext
impl UnsafeUnpin for CompensationContext
impl UnwindSafe for CompensationContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.