summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPit <pitkley@googlemail.com>2019-10-14 00:06:32 +0200
committerDoug Tangren <d.tangren@gmail.com>2019-10-13 18:06:32 -0400
commit1d6c11f12b2b24e1be67476989dc22c4e4935351 (patch)
tree05969e8954ba0b1119937c3829d12c5f8e6c3add
parent027e83c3b0c3d2085c1eb2c7e3697bee2c1498a3 (diff)
Correctly rename `endpoint_id` field (#196)
The `endpoint_id` field is stylized as `EndpointID` in the Docker API when returning container-details for a network ([1]). [1]: https://docs.docker.com/engine/api/v1.24/#35-networks
-rw-r--r--src/rep.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rep.rs b/src/rep.rs
index 80815da..51f459e 100644
--- a/src/rep.rs
+++ b/src/rep.rs
@@ -283,6 +283,7 @@ pub struct NetworkDetails {
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct NetworkContainerDetails {
+ #[serde(rename = "EndpointID")]
pub endpoint_id: String,
pub mac_address: String,
#[serde(rename = "IPv4Address")]