diff --git a/src/types.rs b/src/types.rs index 541d4b4..4894305 100644 --- a/src/types.rs +++ b/src/types.rs @@ -60,6 +60,9 @@ pub struct AccountCredentials { #[serde(with = "pkcs8_serde")] pub(crate) key_pkcs8: Vec, pub(crate) directory: Option, + /// We never serialize `urls` by default, but we support deserializing them + /// in order to support serialized data from older versions of the library. + #[serde(skip_serializing_if = "Option::is_none")] pub(crate) urls: Option, }