From 5aa39a59dab6a05e313a7210e05e713573e2489c Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 26 Dec 2016 15:20:49 +0200 Subject: Make id and status optional for events "id" and "status" are not present in network events. --- src/rep.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rep.rs') 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, + pub id: Option, pub from: Option, pub time: u64, pub timeNano: u64, -- cgit v1.2.3