1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct JobJobExtended {
/// State to which the job is transitioning; if control_state is identical to state, the job's state is stable.
#[serde(rename = "control_state")]
pub control_state: Option<String>,
/// The time the job was queued, in seconds since the epoch.
#[serde(rename = "create_time")]
pub create_time: i32,
/// The current phase of the job.
#[serde(rename = "current_phase")]
pub current_phase: Option<i32>,
/// A text representation of the job.
#[serde(rename = "description")]
pub description: Option<String>,
/// The time the job ended, in seconds since the Epoch.
#[serde(rename = "end_time")]
pub end_time: Option<i32>,
/// The ID of the job.
#[serde(rename = "id")]
pub id: i32,
/// The current impact of the job.
#[serde(rename = "impact")]
pub impact: String,
/// The set of devids working on the job.
#[serde(rename = "participants")]
pub participants: Option<Vec<i32>>,
/// Paths for which the job was queued.
#[serde(rename = "paths")]
pub paths: Option<Vec<String>>,
/// Current impact policy of the job.
#[serde(rename = "policy")]
pub policy: String,
/// Current priority of the job; lower numbers preempt higher numbers.
#[serde(rename = "priority")]
pub priority: i32,
/// A text representation of the job's progress.
#[serde(rename = "progress")]
pub progress: Option<String>,
/// The number of retries remaining if the job fails.
#[serde(rename = "retries_remaining")]
pub retries_remaining: i32,
/// The number of seconds the job has executed.
#[serde(rename = "running_time")]
pub running_time: Option<i32>,
/// The time the job started, in seconds since the Epoch.
#[serde(rename = "start_time")]
pub start_time: Option<i32>,
/// Current state of the job.
#[serde(rename = "state")]
pub state: String,
/// The total number of phases of the job type.
#[serde(rename = "total_phases")]
pub total_phases: i32,
/// The job type.
#[serde(rename = "type")]
pub _type: String,
/// The ID of a job for which this job is waiting.
#[serde(rename = "waiting_on")]
pub waiting_on: Option<i32>,
/// The reason the job is waiting.
#[serde(rename = "waiting_reason")]
pub waiting_reason: Option<String>,
}