pub struct SagaStep {
pub step_id: String,
pub action: SagaAction,
pub compensation: Option<SagaAction>,
pub status: StepStatus,
pub executed_at: Option<DateTime<Utc>>,
pub compensated_at: Option<DateTime<Utc>>,
pub retry_count: u32,
pub max_retries: u32,
}Expand description
Individual step in a saga
Fields§
§step_id: String§action: SagaAction§compensation: Option<SagaAction>§status: StepStatus§executed_at: Option<DateTime<Utc>>§compensated_at: Option<DateTime<Utc>>§retry_count: u32§max_retries: u32Trait Implementations§
Source§impl<'de> Deserialize<'de> for SagaStep
impl<'de> Deserialize<'de> for SagaStep
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
Auto Trait Implementations§
impl Freeze for SagaStep
impl RefUnwindSafe for SagaStep
impl Send for SagaStep
impl Sync for SagaStep
impl Unpin for SagaStep
impl UnwindSafe for SagaStep
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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