summaryrefslogtreecommitdiffstats
path: root/src/rep.rs
diff options
context:
space:
mode:
authorsoftprops <d.tangren@gmail.com>2016-01-18 13:19:09 -0500
committersoftprops <d.tangren@gmail.com>2016-01-18 13:19:09 -0500
commitf681bbe8883556ed3d7ff041d9230295c747cb7b (patch)
tree1c97d094a736019faba46cffb42edae7fbc3e441 /src/rep.rs
parent2139459d574a2704cb0756679c6e41b5232bd247 (diff)
cleanup
Diffstat (limited to 'src/rep.rs')
-rw-r--r--src/rep.rs14
1 files changed, 7 insertions, 7 deletions
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<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)
}