From 6c99f7849aee0168b4eeb753a0720a795aafd76f Mon Sep 17 00:00:00 2001 From: Philip Haynes Date: Fri, 27 Nov 2020 09:13:41 +1100 Subject: [PATCH] Less suck fix to address https://github.com/LoganDark/digitalocean/issues/1 --- src/api/droplet.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/droplet.rs b/src/api/droplet.rs index 9d8051a..3046579 100644 --- a/src/api/droplet.rs +++ b/src/api/droplet.rs @@ -132,7 +132,8 @@ pub mod droplet_fields { /// These exist in the `networks` field of a droplet. #[derive(Deserialize, Serialize, Debug, Clone)] pub struct NetworkV4 { - pub gateway: Ipv4Addr, + /// *Note:* Gateway is a String rather than Ipv4Addr as a workaround until time permits to correctly parse this field. + pub gateway: String, pub ip_address: Ipv4Addr, pub netmask: Ipv4Addr, /// *Note:* Since `type` is a keyword in Rust `kind` is used instead.