From 549b52cf688699ddb7635c3fac711c200f21d2c9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 17 Mar 2021 12:24:21 +0100 Subject: [PATCH] don't serialize 'null' for 'expires' when ordering Signed-off-by: Wolfgang Bumiller --- src/order.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/order.rs b/src/order.rs index f5950943..fd6fb865 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.