]> git.proxmox.com Git - proxmox.git/commitdiff
proxmox-acme: derive PartialEq for API types
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 7 Mar 2024 11:54:44 +0000 (12:54 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Mar 2024 12:21:54 +0000 (13:21 +0100)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
proxmox-acme/src/account.rs
proxmox-acme/src/eab.rs

index e244c092cffb1d195bfa70a92f4d77bc957eff2a..7f00143bff50214332d2fd6d42e110492d3ca159 100644 (file)
@@ -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.
index f006a3f25df27c9e21f7c50aeb0cccd4b6c06bf1..9d044f30146ddcf4de4ef2c875b09bcc16d069fa 100644 (file)
@@ -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)