]> git.proxmox.com Git - proxmox.git/commitdiff
Option<Vec<>> -> Vec<>
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 4 Dec 2023 09:13:46 +0000 (10:13 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 4 Dec 2023 09:13:46 +0000 (10:13 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/directory.rs

index a9d31f272d83f8607ab7427a7ad675d49b1b407d..ed8203f990798783883c7e9b87695792b9d621de 100644 (file)
@@ -57,8 +57,8 @@ pub struct Meta {
     pub website: Option<String>,
 
     /// List of hostnames used by the CA, intended for the use with caa dns records
-    #[serde(skip_serializing_if = "Option::is_none")]
-    pub caa_identities: Option<Vec<String>>,
+    #[serde(default, skip_serializing_if = "Vec::is_empty")]
+    pub caa_identities: Vec<String>,
 }
 
 impl Directory {