summaryrefslogtreecommitdiffstats
path: root/src/image.rs
diff options
context:
space:
mode:
authorwojciechkepka <wojtek.kepka@protonmail.com>2021-03-11 19:08:20 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-07-10 13:05:25 +0200
commit137aa305d69aaa4ee5d451a03021745f96e384d2 (patch)
treed89639a73821ba7b19149006402308f89f675ae9 /src/image.rs
parent4616e70cf97d9db258c6f54b783395d08337d350 (diff)
Rename Config -> ContainerConfig
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/image.rs')
-rw-r--r--src/image.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image.rs b/src/image.rs
index addf4ee..0a8c112 100644
--- a/src/image.rs
+++ b/src/image.rs
@@ -792,7 +792,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"))]
@@ -809,7 +809,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,
@@ -831,7 +831,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 {