pub struct ConciseJob {Show 16 fields
pub id: String,
pub parent_id: Option<String>,
pub job_type: JobType,
pub name: String,
pub datacenters: Vec<String>,
pub priority: u8,
pub periodic: bool,
pub parameterized_job: bool,
pub stop: bool,
pub status: Option<JobStatus>,
pub status_description: Option<String>,
pub create_index: u64,
pub modify_index: u64,
pub job_modify_index: u64,
pub submit_time: i64,
pub job_summary: JobSummary,
}Expand description
Represents a single job summary as part of the Nomad::list_jobs api.
Fields§
§id: StringThe ID of the nomad job.
parent_id: Option<String>The job ID of the parent nomad job.
job_type: JobTypeThe type of the nomad job. See JobType
name: StringThe name of the nomad job.
datacenters: Vec<String>The nomad datacenters for this nomad job.
priority: u8The priority of the nomad job. Can be between 1 and 100.
periodic: boolWhether the job is scheduled at a fixed date/time/interval.
parameterized_job: boolWhether the job is dispatched using a custom payload.
stop: boolWhether the job is stopped.
status: Option<JobStatus>The status of the job.
status_description: Option<String>The status description of the job.
create_index: u64The create index.
modify_index: u64The modify index.
job_modify_index: u64The modify index of the job.
submit_time: i64The time the job was submitted as a unix timestamp.
job_summary: JobSummaryThe summary of the job. See also JobSummary
Trait Implementations§
Source§impl Clone for ConciseJob
impl Clone for ConciseJob
Source§fn clone(&self) -> ConciseJob
fn clone(&self) -> ConciseJob
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 ConciseJob
impl Debug for ConciseJob
Source§impl Default for ConciseJob
impl Default for ConciseJob
Source§fn default() -> ConciseJob
fn default() -> ConciseJob
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConciseJob
impl<'de> Deserialize<'de> for ConciseJob
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 ConciseJob
impl PartialEq for ConciseJob
Source§impl Serialize for ConciseJob
impl Serialize for ConciseJob
impl Eq for ConciseJob
impl StructuralPartialEq for ConciseJob
Auto Trait Implementations§
impl Freeze for ConciseJob
impl RefUnwindSafe for ConciseJob
impl Send for ConciseJob
impl Sync for ConciseJob
impl Unpin for ConciseJob
impl UnwindSafe for ConciseJob
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.