diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-07-10 13:20:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-10 13:20:47 +0200 |
commit | be2c402fafe80da37bb37a8d61db35b41bf63192 (patch) | |
tree | 2865e6a53a316fd65c4f8ca0331820c8ca421969 /src/image.rs | |
parent | 7aa868fc3dc13445bdf3452146d3f7a7799d2da2 (diff) | |
parent | 5467fd3486b19d9638f29b8801e3db4a1dadfb96 (diff) |
Merge pull request #304 from matthiasbeyer/container-details
Container details
Diffstat (limited to 'src/image.rs')
-rw-r--r-- | src/image.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image.rs b/src/image.rs index f19dbad..6df8cb7 100644 --- a/src/image.rs +++ b/src/image.rs @@ -799,7 +799,7 @@ pub struct ImageDetails { pub architecture: String, pub author: String, pub comment: String, - pub config: Config, + pub config: ContainerConfig, #[cfg(feature = "chrono")] pub created: DateTime<Utc>, #[cfg(not(feature = "chrono"))] @@ -816,7 +816,7 @@ pub struct ImageDetails { #[derive(Clone, Debug, Serialize, Deserialize)] #[serde(rename_all = "PascalCase")] -pub struct Config { +pub struct ContainerConfig { pub attach_stderr: bool, pub attach_stdin: bool, pub attach_stdout: bool, @@ -838,7 +838,7 @@ pub struct Config { pub working_dir: String, } -impl Config { +impl ContainerConfig { pub fn env(&self) -> HashMap<String, String> { let mut map = HashMap::new(); if let Some(ref vars) = self.env { |