diff options
author | Colvin Wellborn <39858617+colvin@users.noreply.github.com> | 2019-12-18 09:06:04 -0500 |
---|---|---|
committer | Doug Tangren <d.tangren@gmail.com> | 2019-12-18 09:06:04 -0500 |
commit | 6e4fe40ff249a158cfac33e840f6103a2478d3e4 (patch) | |
tree | bf2e213b47efc63f24557520f989f25b82a197c2 | |
parent | 596aed17bd6d48eecca97ecc1818075e21b63bbf (diff) |
expand rep::Container fields (#213)
Add missing fields to `rep::Container`:
- `image_id` (`ImageID`, API version 1.21)
- `state` (`State`, API version 1.23)
-rw-r--r-- | src/rep.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -60,9 +60,12 @@ pub struct Container { pub command: String, pub id: String, pub image: String, + #[serde(rename = "ImageID")] + pub image_id: String, pub labels: HashMap<String, String>, pub names: Vec<String>, pub ports: Vec<Port>, + pub state: String, pub status: String, pub size_rw: Option<u64>, pub size_root_fs: Option<u64>, |