pub struct ActivityCompletion {
pub result: Value,
pub receipt: Option<EffectReceipt>,
}Expand description
What an activity reports on success: the stored result plus, when the
activity performed an Idempotent effect, its EffectReceipt — the
effect’s own confirmation (provider id, idempotency key), which the
server journals into the task’s run as a effect_receipt event.
Fields§
§result: ValueThe value stored as the task’s result (any JSON).
receipt: Option<EffectReceipt>The effect’s confirmation, when the activity performed an idempotent
effect and the provider confirmed it. None for pure/read-only work
and for effects that carry no confirmation handle.
Trait Implementations§
Source§impl Clone for ActivityCompletion
impl Clone for ActivityCompletion
Source§fn clone(&self) -> ActivityCompletion
fn clone(&self) -> ActivityCompletion
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 Freeze for ActivityCompletion
impl RefUnwindSafe for ActivityCompletion
impl Send for ActivityCompletion
impl Sync for ActivityCompletion
impl Unpin for ActivityCompletion
impl UnsafeUnpin for ActivityCompletion
impl UnwindSafe for ActivityCompletion
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