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
#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct JobEvent {
    /// Event flags.
    #[serde(rename = "flags")]
    pub flags: String,
    /// A string representation of the type of the data value.
    #[serde(rename = "fmt_type")]
    pub fmt_type: String,
    /// Job event ID.
    #[serde(rename = "id")]
    pub id: i32,
    /// Job ID.
    #[serde(rename = "job_id")]
    pub job_id: i32,
    /// Job Type.
    #[serde(rename = "job_type")]
    pub job_type: String,
    /// Event key name.
    #[serde(rename = "key")]
    pub key: String,
    /// Job phase number at time of event.
    #[serde(rename = "phase")]
    pub phase: i32,
    /// An integer representation of the type of the data value.
    #[serde(rename = "raw_type")]
    pub raw_type: i32,
    /// Time of event in Unix epoch seconds.
    #[serde(rename = "time")]
    pub time: i32,
    /// Event value.
    #[serde(rename = "value")]
    pub value: Option<String>,
}