pub struct SagaJournalRecord {
pub saga_id: Vec<u8>,
pub phase: SagaJournalPhase,
pub completed_steps: u32,
pub catalog_version: Option<u32>,
pub failed_step: Option<u32>,
pub compensate_failed_at: Option<u32>,
}Expand description
Durable saga progress (journal value).
Fields§
§saga_id: Vec<u8>Saga identifier.
phase: SagaJournalPhaseLatest phase.
completed_steps: u32Forward steps committed so far.
catalog_version: Option<u32>Catalog version pinned at start, if any.
failed_step: Option<u32>Forward step that failed before compensation (if any).
compensate_failed_at: Option<u32>Compensate step index that failed when phase is SagaJournalPhase::Stuck.
Trait Implementations§
Source§impl Clone for SagaJournalRecord
impl Clone for SagaJournalRecord
Source§fn clone(&self) -> SagaJournalRecord
fn clone(&self) -> SagaJournalRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SagaJournalRecord
impl Debug for SagaJournalRecord
Source§impl<'de> Deserialize<'de> for SagaJournalRecord
impl<'de> Deserialize<'de> for SagaJournalRecord
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
impl Eq for SagaJournalRecord
Source§impl PartialEq for SagaJournalRecord
impl PartialEq for SagaJournalRecord
Source§impl Serialize for SagaJournalRecord
impl Serialize for SagaJournalRecord
impl StructuralPartialEq for SagaJournalRecord
Auto Trait Implementations§
impl Freeze for SagaJournalRecord
impl RefUnwindSafe for SagaJournalRecord
impl Send for SagaJournalRecord
impl Sync for SagaJournalRecord
impl Unpin for SagaJournalRecord
impl UnsafeUnpin for SagaJournalRecord
impl UnwindSafe for SagaJournalRecord
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<T> Command for T
impl<T> Command for T
Source§fn to_bytes(&self) -> Result<Vec<u8>, CodecError>
fn to_bytes(&self) -> Result<Vec<u8>, CodecError>
Encode this command to
postcard bytes for the log/wire. Read moreSource§fn from_bytes(bytes: &[u8]) -> Result<T, CodecError>
fn from_bytes(bytes: &[u8]) -> Result<T, CodecError>
Decode a command from
postcard bytes read back from the log/wire. Read moreimpl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Query for T
impl<T> Query for T
Source§fn to_bytes(&self) -> Result<Vec<u8>, CodecError>
fn to_bytes(&self) -> Result<Vec<u8>, CodecError>
Encode this query to
postcard bytes for the wire. Read moreSource§fn from_bytes(bytes: &[u8]) -> Result<T, CodecError>
fn from_bytes(bytes: &[u8]) -> Result<T, CodecError>
Decode a query from
postcard bytes. Read more