diff --git a/proxmox-acme/src/types.rs b/proxmox-acme/src/types.rs index e5a6b34d..0ec2deeb 100644 --- a/proxmox-acme/src/types.rs +++ b/proxmox-acme/src/types.rs @@ -38,6 +38,12 @@ pub enum AccountStatus { Revoked, } +impl Default for AccountStatus { + fn default() -> Self { + Self::new() + } +} + impl AccountStatus { /// Create a new instance with state New. #[inline] diff --git a/proxmox-auth-api/src/auth_key.rs b/proxmox-auth-api/src/auth_key.rs index 9873d935..500725d3 100644 --- a/proxmox-auth-api/src/auth_key.rs +++ b/proxmox-auth-api/src/auth_key.rs @@ -237,6 +237,12 @@ pub struct Keyring { public_keys: Vec, } +impl Default for Keyring { + fn default() -> Self { + Self::new() + } +} + impl Keyring { pub fn generate_new_rsa() -> Result { PrivateKey::generate_rsa().map(Self::with_private_key)