diff options
author | Andy Caldwell <andy.m.caldwell@googlemail.com> | 2019-02-13 05:12:42 +0000 |
---|---|---|
committer | doug tangren <d.tangren@gmail.com> | 2019-02-13 00:12:42 -0500 |
commit | 2a40dc00e6aeb611db8095dc8646e5132fea356b (patch) | |
tree | 30929a1ee4f0386d0879054939eabd12b0a9dcda /src/rep.rs | |
parent | 31a913b4a1a6a51179ddd3c3b7b6727984e829e5 (diff) |
Copy from container (#150)
* Add 'copy_from' function to 'Container'
* Run clippy
* Update deps
Diffstat (limited to 'src/rep.rs')
-rw-r--r-- | src/rep.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -106,6 +106,8 @@ pub struct State { pub started_at: String, } +type PortDescription = HashMap<String, Option<Vec<HashMap<String, String>>>>; + #[derive(Clone, Debug, Serialize, Deserialize)] #[serde(rename_all = "PascalCase")] pub struct NetworkSettings { @@ -116,7 +118,7 @@ pub struct NetworkSettings { #[serde(rename = "IPPrefixLen")] pub ip_prefix_len: u64, pub mac_address: String, - pub ports: Option<HashMap<String, Option<Vec<HashMap<String, String>>>>>, + pub ports: Option<PortDescription>, pub networks: HashMap<String, NetworkEntry>, } |