Skip to main content

dockworker/
event.rs

1use std::collections::HashMap;
2
3use serde::Deserialize;
4
5#[derive(Debug, Clone, Deserialize)]
6#[allow(non_snake_case)]
7pub struct EventActor {
8    pub ID: String,
9    pub Attributes: HashMap<String, String>,
10}
11
12#[derive(Debug, Clone, Deserialize)]
13#[allow(non_snake_case)]
14pub struct EventResponse {
15    pub Type: String,
16    pub Action: String,
17    pub Actor: EventActor,
18    pub time: u64,
19    pub timeNano: u64,
20}