pub struct AttemptClaim {
pub obligation_id: String,
pub claimant_actor: String,
pub claimant_pubkey: String,
pub claimed_at: String,
pub lease_ttl_seconds: u64,
pub claim_event_id: Option<String>,
}Expand description
An active (or expired — expiry is a read-time computation) lease on an open obligation. One live lease per obligation; the reducer rejects a second claim while a prior one is unexpired.
Fields§
§obligation_id: String§claimant_actor: String§claimant_pubkey: String§claimed_at: String§lease_ttl_seconds: u64§claim_event_id: Option<String>The exact signed attempt.claimed event that established this
derived lease. Older serialized projections did not retain the event
identity, so they continue to deserialize with None; replay of the
canonical event log fills it mechanically. Refresh and zero-TTL
release updates use this as their compare-and-swap predecessor.
Trait Implementations§
Source§impl Clone for AttemptClaim
impl Clone for AttemptClaim
Source§fn clone(&self) -> AttemptClaim
fn clone(&self) -> AttemptClaim
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 AttemptClaim
impl Debug for AttemptClaim
Source§impl<'de> Deserialize<'de> for AttemptClaim
impl<'de> Deserialize<'de> for AttemptClaim
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
Source§impl PartialEq for AttemptClaim
impl PartialEq for AttemptClaim
Source§impl Serialize for AttemptClaim
impl Serialize for AttemptClaim
impl StructuralPartialEq for AttemptClaim
Auto Trait Implementations§
impl Freeze for AttemptClaim
impl RefUnwindSafe for AttemptClaim
impl Send for AttemptClaim
impl Sync for AttemptClaim
impl Unpin for AttemptClaim
impl UnsafeUnpin for AttemptClaim
impl UnwindSafe for AttemptClaim
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