From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 130A6B82DC for ; Thu, 7 Mar 2024 12:54:50 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id EE48835960 for ; Thu, 7 Mar 2024 12:54:49 +0100 (CET) Received: from druiddev.proxmox.com (unknown [94.136.29.99]) by firstgate.proxmox.com (Proxmox) with ESMTP for ; Thu, 7 Mar 2024 12:54:48 +0100 (CET) Received: by druiddev.proxmox.com (Postfix, from userid 1000) id B3D088C25D; Thu, 7 Mar 2024 12:54:48 +0100 (CET) From: Dietmar Maurer To: pve-devel@lists.proxmox.com Date: Thu, 7 Mar 2024 12:54:44 +0100 Message-Id: <20240307115444.65250-1-dietmar@proxmox.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.546 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record T_SCC_BODY_TEXT_LINE -0.01 - URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [eab.rs, account.rs] Subject: [pve-devel] [PATCH proxmox] proxmox-acme: derive PartialEq for API types X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Mar 2024 11:54:50 -0000 Signed-off-by: Dietmar Maurer --- 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