pub struct Lease {
pub lease_id: String,
pub job_id: String,
pub workflow_id: String,
pub worker_id: String,
pub ttl_secs: u64,
pub granted_at_ms: u64,
}Expand description
A lease proving a worker has exclusively claimed a job.
Fields§
§lease_id: String§job_id: String§workflow_id: String§worker_id: String§ttl_secs: u64§granted_at_ms: u64Epoch milliseconds when the lease was granted/last renewed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lease
impl<'de> Deserialize<'de> for Lease
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 Lease
impl RefUnwindSafe for Lease
impl Send for Lease
impl Sync for Lease
impl Unpin for Lease
impl UnsafeUnpin for Lease
impl UnwindSafe for Lease
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