From 1d6c11f12b2b24e1be67476989dc22c4e4935351 Mon Sep 17 00:00:00 2001 From: Pit Date: Mon, 14 Oct 2019 00:06:32 +0200 Subject: 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 --- src/rep.rs | 1 + 1 file changed, 1 insertion(+) 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")] -- cgit v1.2.3