1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
use std::collections::HashMap;

#[derive(Serialize, Deserialize, Debug)]
#[allow(non_snake_case)]
pub struct Event {
    pub Type: String,
    pub Action: String,
    pub status: String,
    pub id: String,
    pub Actor: Actor,
    pub scope: String,
    pub time: String,
    pub timeNano: Option<String>,
    pub Experimental: Option<bool>,
}

#[derive(Serialize, Deserialize, Debug)]
#[allow(non_snake_case)]
pub struct Actor {
    pub ID: String,
    pub Attributes: HashMap<String, String>,
}