From: Wolfgang Bumiller Date: Wed, 17 Mar 2021 11:24:21 +0000 (+0100) Subject: don't serialize 'null' for 'expires' when ordering X-Git-Url: https://git.proxmox.com/?p=proxmox-acme-rs.git;a=commitdiff_plain;h=549b52cf688699ddb7635c3fac711c200f21d2c9 don't serialize 'null' for 'expires' when ordering Signed-off-by: Wolfgang Bumiller --- diff --git a/src/order.rs b/src/order.rs index f595094..fd6fb86 100644 --- a/src/order.rs +++ b/src/order.rs @@ -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, /// List of identifiers to order for the certificate.