From: Dietmar Maurer Date: Wed, 11 Oct 2023 09:38:01 +0000 (+0200) Subject: Interface: fix deserialize (add default) X-Git-Tag: v3.1.2~129 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=8192c9ea56358d0ade08c35ed1fc34e110d14bff;p=proxmox-backup.git Interface: fix deserialize (add default) Signed-off-by: Dietmar Maurer --- diff --git a/pbs-api-types/src/network.rs b/pbs-api-types/src/network.rs index 8e2897b5..a8294a59 100644 --- a/pbs-api-types/src/network.rs +++ b/pbs-api-types/src/network.rs @@ -268,9 +268,9 @@ pub struct Interface { /// IPv6 gateway pub gateway6: Option, - #[serde(skip_serializing_if = "Vec::is_empty")] + #[serde(default, skip_serializing_if = "Vec::is_empty")] pub options: Vec, - #[serde(skip_serializing_if = "Vec::is_empty")] + #[serde(default, skip_serializing_if = "Vec::is_empty")] pub options6: Vec, #[serde(skip_serializing_if = "Option::is_none")]