pub struct HeartbeatResponse {Show 13 fields
pub access_token: Option<String>,
pub access_token_expires_at: Option<DateTime<Utc>>,
pub lease_expires_at: Option<DateTime<Utc>>,
pub cancel: Option<bool>,
pub status: Option<String>,
pub domain_id: Option<Uuid>,
pub domain_server_url: Option<Url>,
pub task: Option<TaskSpec>,
pub task_id: Option<Uuid>,
pub job_id: Option<Uuid>,
pub attempts: Option<u64>,
pub max_attempts: Option<u64>,
pub deps_remaining: Option<u64>,
}Expand description
Heartbeat responses provide incremental lease updates.
Fields§
§access_token: Option<String>§access_token_expires_at: Option<DateTime<Utc>>§lease_expires_at: Option<DateTime<Utc>>§cancel: Option<bool>§status: Option<String>§domain_id: Option<Uuid>§domain_server_url: Option<Url>§task: Option<TaskSpec>§task_id: Option<Uuid>§job_id: Option<Uuid>§attempts: Option<u64>§max_attempts: Option<u64>§deps_remaining: Option<u64>Trait Implementations§
Source§impl Clone for HeartbeatResponse
impl Clone for HeartbeatResponse
Source§fn clone(&self) -> HeartbeatResponse
fn clone(&self) -> HeartbeatResponse
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeartbeatResponse
impl Debug for HeartbeatResponse
Source§impl Default for HeartbeatResponse
impl Default for HeartbeatResponse
Source§fn default() -> HeartbeatResponse
fn default() -> HeartbeatResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HeartbeatResponse
impl<'de> Deserialize<'de> for HeartbeatResponse
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 HeartbeatResponse
impl RefUnwindSafe for HeartbeatResponse
impl Send for HeartbeatResponse
impl Sync for HeartbeatResponse
impl Unpin for HeartbeatResponse
impl UnwindSafe for HeartbeatResponse
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)