pub struct SagaContext {
pub saga_id: String,
pub workflow_id: WorkflowExecutionId,
pub status: SagaStatus,
pub start_time: DateTime<Utc>,
pub end_time: Option<DateTime<Utc>>,
pub timeout: Option<Duration>,
pub transaction_log: Vec<SagaTransaction>,
pub compensation_log: Vec<SagaCompensation>,
pub metadata: HashMap<String, Value>,
}
Expand description
Saga 実行コンテキスト
Fields§
§saga_id: String
§workflow_id: WorkflowExecutionId
§status: SagaStatus
§start_time: DateTime<Utc>
§end_time: Option<DateTime<Utc>>
§timeout: Option<Duration>
§transaction_log: Vec<SagaTransaction>
§compensation_log: Vec<SagaCompensation>
§metadata: HashMap<String, Value>
Trait Implementations§
Source§impl Clone for SagaContext
impl Clone for SagaContext
Source§fn clone(&self) -> SagaContext
fn clone(&self) -> SagaContext
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 SagaContext
impl Debug for SagaContext
Source§impl<'de> Deserialize<'de> for SagaContext
impl<'de> Deserialize<'de> for SagaContext
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 SagaContext
impl RefUnwindSafe for SagaContext
impl Send for SagaContext
impl Sync for SagaContext
impl Unpin for SagaContext
impl UnwindSafe for SagaContext
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