docker_sync/
event.rs

1use std::collections::HashMap;
2
3#[derive(Serialize, Deserialize, Debug)]
4#[allow(non_snake_case)]
5pub struct Event {
6    pub Type: String,
7    pub Action: String,
8    pub status: String,
9    pub id: String,
10    pub Actor: Actor,
11    pub scope: String,
12    pub time: String,
13    pub timeNano: Option<String>,
14    pub Experimental: Option<bool>,
15}
16
17#[derive(Serialize, Deserialize, Debug)]
18#[allow(non_snake_case)]
19pub struct Actor {
20    pub ID: String,
21    pub Attributes: HashMap<String, String>,
22}