From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 85AD21FF16F for ; Tue, 13 May 2025 12:15:10 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id BB10F1E585; Tue, 13 May 2025 12:15:32 +0200 (CEST) From: Stefan Hanreich To: pbs-devel@lists.proxmox.com Date: Tue, 13 May 2025 12:14:56 +0200 Message-Id: <20250513101459.122641-4-s.hanreich@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250513101459.122641-1-s.hanreich@proxmox.com> References: <20250513101459.122641-1-s.hanreich@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.233 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [lib.rs] Subject: [pbs-devel] [PATCH proxmox 3/3] client: move to proxmox_serde perl helpers X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" The perl helpers have been moved to proxmox_serde from proxmox_login, so fix all occurences using the proxmox_login crate. Signed-off-by: Stefan Hanreich --- proxmox-client/Cargo.toml | 2 ++ proxmox-client/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/proxmox-client/Cargo.toml b/proxmox-client/Cargo.toml index c2682e77..b15c9faa 100644 --- a/proxmox-client/Cargo.toml +++ b/proxmox-client/Cargo.toml @@ -27,6 +27,8 @@ proxmox-login = { workspace = true, features = [ "http" ] } proxmox-http = { workspace = true, optional = true, features = [ "client" ] } hyper = { workspace = true, optional = true } +proxmox-serde = { workspace = true, features = [ "perl" ] } + [dev-dependencies] serde_plain.workspace = true diff --git a/proxmox-client/src/lib.rs b/proxmox-client/src/lib.rs index e802f4ce..f1df1e1d 100644 --- a/proxmox-client/src/lib.rs +++ b/proxmox-client/src/lib.rs @@ -173,10 +173,10 @@ pub struct ApiResponseData { #[derive(serde::Deserialize)] struct RawApiResponse { - #[serde(default, deserialize_with = "proxmox_login::parse::deserialize_u16")] + #[serde(default, deserialize_with = "proxmox_serde::perl::deserialize_u16")] status: Option, message: Option, - #[serde(default, deserialize_with = "proxmox_login::parse::deserialize_bool")] + #[serde(default, deserialize_with = "proxmox_serde::perl::deserialize_bool")] success: Option, data: Option, -- 2.39.5 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel