pub struct LeaseRecord {
pub lease_id: String,
pub attempt_id: String,
pub worker_id: String,
pub lease_expires_at: DateTime<Utc>,
pub heartbeat_at: DateTime<Utc>,
pub version: u64,
}Expand description
Lease metadata for worker ownership and failover.
Fields§
§lease_id: String§attempt_id: String§worker_id: String§lease_expires_at: DateTime<Utc>§heartbeat_at: DateTime<Utc>§version: u64Trait Implementations§
Source§impl Clone for LeaseRecord
impl Clone for LeaseRecord
Source§fn clone(&self) -> LeaseRecord
fn clone(&self) -> LeaseRecord
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 LeaseRecord
impl Debug for LeaseRecord
Source§impl<'de> Deserialize<'de> for LeaseRecord
impl<'de> Deserialize<'de> for LeaseRecord
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 LeaseRecord
impl RefUnwindSafe for LeaseRecord
impl Send for LeaseRecord
impl Sync for LeaseRecord
impl Unpin for LeaseRecord
impl UnsafeUnpin for LeaseRecord
impl UnwindSafe for LeaseRecord
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