pub struct ActivityHeartbeatCheckpoint { /* private fields */ }Expand description
An immutable checkpoint received with this activity attempt’s claim.
Heartbeat writes never change this snapshot, including when a response is rejected or lost. A later claim may carry a newer acknowledged checkpoint. A checkpoint does not atomically commit an external business effect.
Implementations§
Source§impl ActivityHeartbeatCheckpoint
impl ActivityHeartbeatCheckpoint
Sourcepub fn details_as<T: DeserializeOwned>(&self) -> Result<T>
pub fn details_as<T: DeserializeOwned>(&self) -> Result<T>
Deserialize the received JSON details into an application type.
Sourcepub fn acknowledged_at(&self) -> &DateTime<Utc>
pub fn acknowledged_at(&self) -> &DateTime<Utc>
The producer’s acknowledgement time, preserving fractional precision.
Sourcepub fn contract_version(&self) -> u64
pub fn contract_version(&self) -> u64
The negotiated contract version, not a checkpoint write sequence. Server v1 does not supply a per-checkpoint sequence number.
Trait Implementations§
Source§impl Clone for ActivityHeartbeatCheckpoint
impl Clone for ActivityHeartbeatCheckpoint
Source§fn clone(&self) -> ActivityHeartbeatCheckpoint
fn clone(&self) -> ActivityHeartbeatCheckpoint
Returns a copy 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 ActivityHeartbeatCheckpoint
impl Debug for ActivityHeartbeatCheckpoint
impl StructuralPartialEq for ActivityHeartbeatCheckpoint
Auto Trait Implementations§
impl Freeze for ActivityHeartbeatCheckpoint
impl RefUnwindSafe for ActivityHeartbeatCheckpoint
impl Send for ActivityHeartbeatCheckpoint
impl Sync for ActivityHeartbeatCheckpoint
impl Unpin for ActivityHeartbeatCheckpoint
impl UnwindSafe for ActivityHeartbeatCheckpoint
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