summaryrefslogtreecommitdiffstats
path: root/src/rep.rs
diff options
context:
space:
mode:
authorRoey Darwish Dror <roeyd@infinidat.com>2016-12-26 15:20:49 +0200
committerRoey Darwish Dror <roeyd@infinidat.com>2016-12-26 15:20:49 +0200
commit5aa39a59dab6a05e313a7210e05e713573e2489c (patch)
tree745ee7e63ab84f34c205556bf512143e944653dd /src/rep.rs
parentf019e700a5507983618ab84a40d4dcd8e8ed69b6 (diff)
Make id and status optional for events
"id" and "status" are not present in network events.
Diffstat (limited to 'src/rep.rs')
-rw-r--r--src/rep.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rep.rs b/src/rep.rs
index a379e57..54df0e9 100644
--- a/src/rep.rs
+++ b/src/rep.rs
@@ -363,8 +363,8 @@ pub struct Exit {
#[derive(Debug, RustcEncodable, RustcDecodable)]
#[allow(non_snake_case)]
pub struct Event {
- pub status: String,
- pub id: String,
+ pub status: Option<String>,
+ pub id: Option<String>,
pub from: Option<String>,
pub time: u64,
pub timeNano: u64,