diff options
author | softprops <d.tangren@gmail.com> | 2016-01-18 13:19:09 -0500 |
---|---|---|
committer | softprops <d.tangren@gmail.com> | 2016-01-18 13:19:09 -0500 |
commit | f681bbe8883556ed3d7ff041d9230295c747cb7b (patch) | |
tree | 1c97d094a736019faba46cffb42edae7fbc3e441 /src/rep.rs | |
parent | 2139459d574a2704cb0756679c6e41b5232bd247 (diff) |
cleanup
Diffstat (limited to 'src/rep.rs')
-rw-r--r-- | src/rep.rs | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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<u64>, total: Option<u64>, status: Option<String> // 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<String>, - status: String, - progress: Option<String>, - progressDetail: Option<ProgressDetail> + pub id: Option<String>, + pub status: String, + pub progress: Option<String>, + pub progressDetail: Option<ProgressDetail> } #[derive(Debug)] pub enum PullOutput { - Status(PullInfo), + Status { id: Option<String>, status: String, progress: Option<String>, progress_detail: Option<ProgressDetail> }, Err(String) } |