summaryrefslogtreecommitdiffstats
path: root/src/rep.rs
diff options
context:
space:
mode:
authorsoftprops <d.tangren@gmail.com>2016-01-18 14:08:27 -0500
committersoftprops <d.tangren@gmail.com>2016-01-18 14:08:27 -0500
commit6c474a754f6b6339a10a7dff4dc68096630e3166 (patch)
tree345623b161c421e4bd3a4e62db0ac5fa9285acf9 /src/rep.rs
parentbf41af93452643651f02d1bb57aef7a5d3b29e83 (diff)
rust fmt
Diffstat (limited to 'src/rep.rs')
-rw-r--r--src/rep.rs30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/rep.rs b/src/rep.rs
index b497d08..ae2314b 100644
--- a/src/rep.rs
+++ b/src/rep.rs
@@ -78,7 +78,7 @@ pub struct ContainerDetails {
pub ResolvConfPath: String,
pub RestartCount: u64,
pub State: State,
- pub Mounts: Vec<Mount>
+ pub Mounts: Vec<Mount>,
}
#[derive(Debug, RustcEncodable, RustcDecodable)]
@@ -87,7 +87,7 @@ pub struct Mount {
pub Source: String,
pub Destination: String,
pub Mode: String,
- pub RW: bool
+ pub RW: bool,
}
#[derive(Debug, RustcEncodable, RustcDecodable)]
@@ -101,7 +101,7 @@ pub struct State {
pub Pid: u64,
pub Restarting: bool,
pub Running: bool,
- pub StartedAt: String
+ pub StartedAt: String,
}
#[derive(Debug, RustcEncodable, RustcDecodable)]
@@ -111,9 +111,8 @@ pub struct NetworkSettings {
pub Gateway: String,
pub IPAddress: String,
pub IPPrefixLen: u64,
- pub MacAddress: String,
-// pub PortMapping: Option<???>,
- // pub Ports: Option<???>
+ pub MacAddress: String, /* pub PortMapping: Option<???>,
+ * pub Ports: Option<???> */
}
#[derive(Debug, RustcEncodable, RustcDecodable)]
@@ -150,9 +149,9 @@ pub struct Config {
pub Hostname: String,
pub Image: String,
pub Labels: HashMap<String, String>,
-// pub MacAddress: String,
+ // pub MacAddress: String,
pub OnBuild: Option<String>,
-// pub NetworkDisabled: bool,
+ // pub NetworkDisabled: bool,
pub OpenStdin: bool,
pub StdinOnce: bool,
pub Tty: bool,
@@ -375,7 +374,7 @@ pub struct Event {
#[derive(Debug)]
pub enum BuildOutput {
Stream(String),
- Err(String)
+ Err(String),
}
// fixme: all fields are options because PullInfo.progressDefault is sometimes an empty object instead of a null/absent value
@@ -383,7 +382,7 @@ pub enum BuildOutput {
pub struct ProgressDetail {
current: Option<u64>,
total: Option<u64>,
- status: Option<String> // fixme: it looks like this field isn't deserializing properly
+ status: Option<String>, // fixme: it looks like this field isn't deserializing properly
}
#[derive(Clone, Debug, RustcDecodable)]
@@ -392,13 +391,18 @@ pub struct PullInfo {
pub id: Option<String>,
pub status: String,
pub progress: Option<String>,
- pub progressDetail: Option<ProgressDetail>
+ pub progressDetail: Option<ProgressDetail>,
}
#[derive(Debug)]
pub enum PullOutput {
- Status { id: Option<String>, status: String, progress: Option<String>, progress_detail: Option<ProgressDetail> },
- Err(String)
+ Status {
+ id: Option<String>,
+ status: String,
+ progress: Option<String>,
+ progress_detail: Option<ProgressDetail>,
+ },
+ Err(String),
}
#[derive(Debug)]