[pve-devel] [PATCH proxmox] proxmox-acme: derive PartialEq for API types

Dietmar Maurer dietmar at proxmox.com
Thu Mar 7 12:54:44 CET 2024


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 proxmox-acme/src/account.rs | 2 +-
 proxmox-acme/src/eab.rs     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/proxmox-acme/src/account.rs b/proxmox-acme/src/account.rs
index e244c09..7f00143 100644
--- a/proxmox-acme/src/account.rs
+++ b/proxmox-acme/src/account.rs
@@ -319,7 +319,7 @@ impl AccountStatus {
 /// ACME Account data. This is the part of the account returned from and possibly sent to the ACME
 /// provider. Some fields may be uptdated by the user via a request to the account location, others
 /// may not be changed.
-#[derive(Clone, Deserialize, Serialize)]
+#[derive(Clone, PartialEq, Deserialize, Serialize)]
 #[serde(rename_all = "camelCase")]
 pub struct AccountData {
     /// The current account status.
diff --git a/proxmox-acme/src/eab.rs b/proxmox-acme/src/eab.rs
index f006a3f..9d044f3 100644
--- a/proxmox-acme/src/eab.rs
+++ b/proxmox-acme/src/eab.rs
@@ -16,7 +16,7 @@ struct Protected {
 
 #[cfg_attr(feature="api-types", proxmox_schema::api())]
 /// External Account Bindings
-#[derive(Debug, Serialize, Deserialize, Clone)]
+#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
 #[serde(rename_all = "camelCase")]
 pub struct ExternalAccountBinding {
     /// JOSE Header (see RFC 7515)
-- 
2.39.2




More information about the pve-devel mailing list