From f681bbe8883556ed3d7ff041d9230295c747cb7b Mon Sep 17 00:00:00 2001 From: softprops Date: Mon, 18 Jan 2016 13:19:09 -0500 Subject: cleanup --- src/rep.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/rep.rs') diff --git a/src/rep.rs b/src/rep.rs index 9b9f1d6..b497d08 100644 --- a/src/rep.rs +++ b/src/rep.rs @@ -379,25 +379,25 @@ pub enum BuildOutput { } // fixme: all fields are options because PullInfo.progressDefault is sometimes an empty object instead of a null/absent value -#[derive(Debug, RustcDecodable)] +#[derive(Clone, Debug, RustcDecodable)] pub struct ProgressDetail { current: Option, total: Option, status: Option // fixme: it looks like this field isn't deserializing properly } -#[derive(Debug, RustcDecodable)] +#[derive(Clone, Debug, RustcDecodable)] #[allow(non_snake_case)] pub struct PullInfo { - id: Option, - status: String, - progress: Option, - progressDetail: Option + pub id: Option, + pub status: String, + pub progress: Option, + pub progressDetail: Option } #[derive(Debug)] pub enum PullOutput { - Status(PullInfo), + Status { id: Option, status: String, progress: Option, progress_detail: Option }, Err(String) } -- cgit v1.2.3