pub struct ActivitySettlement<'a> {
pub activity_id: i64,
pub workflow_id: &'a str,
pub result: Option<&'a str>,
pub error: Option<&'a str>,
pub failed: bool,
pub event_type: &'a str,
pub payload: &'a str,
pub now: f64,
}Expand description
The writes that must land together when an activity reaches a terminal
state: the activity row, the history event a replaying workflow reads,
and the dispatch arming that wakes the workflow. Passed to
crate::store::WorkflowStore::settle_activity, which applies all three
in one transaction.
Fields§
§activity_id: i64§workflow_id: &'a str§result: Option<&'a str>§error: Option<&'a str>§failed: bool§event_type: &'a strActivityCompleted or ActivityFailed.
payload: &'a strSerialised event payload, built by the caller.
now: f64Trait Implementations§
Source§impl<'a> Clone for ActivitySettlement<'a>
impl<'a> Clone for ActivitySettlement<'a>
Source§fn clone(&self) -> ActivitySettlement<'a>
fn clone(&self) -> ActivitySettlement<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ActivitySettlement<'a>
impl<'a> RefUnwindSafe for ActivitySettlement<'a>
impl<'a> Send for ActivitySettlement<'a>
impl<'a> Sync for ActivitySettlement<'a>
impl<'a> Unpin for ActivitySettlement<'a>
impl<'a> UnsafeUnpin for ActivitySettlement<'a>
impl<'a> UnwindSafe for ActivitySettlement<'a>
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more