summaryrefslogtreecommitdiffstats
path: root/src/rep.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rep.rs')
-rw-r--r--src/rep.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rep.rs b/src/rep.rs
index bf24d0c..5327db5 100644
--- a/src/rep.rs
+++ b/src/rep.rs
@@ -428,27 +428,30 @@ pub struct Exit {
}
#[derive(Clone, Debug, Serialize, Deserialize)]
-#[serde(rename_all = "PascalCase")]
pub struct Event {
#[serde(rename = "Type")]
pub typ: String,
+ #[serde(rename = "Action")]
pub action: String,
+ #[serde(rename = "Actor")]
pub actor: Actor,
pub status: Option<String>,
pub id: Option<String>,
pub from: Option<String>,
pub time: u64,
+ #[serde(rename = "timeNano")]
pub time_nano: u64,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
-#[serde(rename_all = "PascalCase")]
pub struct Actor {
+ #[serde(rename = "ID")]
pub id: String,
+ #[serde(rename = "Attributes")]
pub attributes: HashMap<String, String>,
}
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Serialize, Deserialize)]
pub enum Status {
Untagged(String),
Deleted(String),