]> git.proxmox.com Git - proxmox-acme-rs.git/commitdiff
don't serialize 'null' for 'expires' when ordering
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 17 Mar 2021 11:24:21 +0000 (12:24 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 17 Mar 2021 11:24:21 +0000 (12:24 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/order.rs

index f595094329c57f44f9a402b130cdc766b6c13cfa..fd6fb865152a142c85b9e021ce6189054fa3450b 100644 (file)
@@ -45,6 +45,7 @@ pub struct OrderData {
     pub status: Status,
 
     /// This order's expiration date as RFC3339 formatted time string.
+    #[serde(skip_serializing_if = "Option::is_none")]
     pub expires: Option<String>,
 
     /// List of identifiers to order for the certificate.