Struct bollard::models::ServiceJobStatus
source · pub struct ServiceJobStatus {
pub job_iteration: Option<ObjectVersion>,
pub last_execution: Option<String>,
}
Expand description
The status of the service when it is in one of ReplicatedJob or GlobalJob modes. Absent on Replicated and Global mode services. The JobIteration is an ObjectVersion, but unlike the Service’s version, does not need to be sent with an update request.
Fields§
§job_iteration: Option<ObjectVersion>
JobIteration is a value increased each time a Job is executed, successfully or otherwise. "Executed", in this case, means the job as a whole has been started, not that an individual Task has been launched. A job is "Executed" when its ServiceSpec is updated. JobIteration can be used to disambiguate Tasks belonging to different executions of a job. Though JobIteration will increase with each subsequent execution, it may not necessarily increase by 1, and so JobIteration should not be used to
last_execution: Option<String>
The last time, as observed by the server, that this job was started.
Trait Implementations§
source§impl Clone for ServiceJobStatus
impl Clone for ServiceJobStatus
source§fn clone(&self) -> ServiceJobStatus
fn clone(&self) -> ServiceJobStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceJobStatus
impl Debug for ServiceJobStatus
source§impl Default for ServiceJobStatus
impl Default for ServiceJobStatus
source§fn default() -> ServiceJobStatus
fn default() -> ServiceJobStatus
source§impl<'de> Deserialize<'de> for ServiceJobStatus
impl<'de> Deserialize<'de> for ServiceJobStatus
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceJobStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceJobStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for ServiceJobStatus
impl PartialEq for ServiceJobStatus
source§impl Serialize for ServiceJobStatus
impl Serialize for ServiceJobStatus
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ServiceJobStatus
Auto Trait Implementations§
impl Freeze for ServiceJobStatus
impl RefUnwindSafe for ServiceJobStatus
impl Send for ServiceJobStatus
impl Sync for ServiceJobStatus
impl Unpin for ServiceJobStatus
impl UnwindSafe for ServiceJobStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)