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 773221FF1BD for ; Thu, 28 Aug 2025 12:59:41 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id EEC9CDA65; Thu, 28 Aug 2025 12:59:50 +0200 (CEST) From: Shannon Sterz To: pdm-devel@lists.proxmox.com Date: Thu, 28 Aug 2025 12:59:08 +0200 Message-ID: <20250828105912.294887-8-s.sterz@proxmox.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250828105912.294887-1-s.sterz@proxmox.com> References: <20250828105912.294887-1-s.sterz@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1756378748908 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.025 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 SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pdm-devel] [PATCH yew-comp v3 1/3] api-types/role_selector: depend on common `RoleInfo` type X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" instead of redefining it here. this should make sure that we stay in sync with the common api definition in `proxmox-access-control`. Signed-off-by: Shannon Sterz --- src/common_api_types.rs | 8 -------- src/role_selector.rs | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/common_api_types.rs b/src/common_api_types.rs index 57415e9..03f7707 100644 --- a/src/common_api_types.rs +++ b/src/common_api_types.rs @@ -24,14 +24,6 @@ impl ExtractPrimaryKey for BasicRealmInfo { } } -#[derive(Serialize, Deserialize, PartialEq, Clone)] -pub struct RoleInfo { - pub roleid: String, - pub privs: Vec, - #[serde(skip_serializing_if = "Option::is_none")] - pub comment: Option, -} - /// Upid covering different products (PVE, PBS and PDM) /// /// Different products use different UPID formats. This type can parse diff --git a/src/role_selector.rs b/src/role_selector.rs index 7bde09f..20a8483 100644 --- a/src/role_selector.rs +++ b/src/role_selector.rs @@ -10,7 +10,7 @@ use pwt::widget::data_table::{DataTable, DataTableColumn, DataTableHeader}; use pwt::widget::form::{Selector, SelectorRenderArgs, ValidateFn}; use pwt::widget::GridPicker; -use crate::common_api_types::RoleInfo; +use proxmox_access_control::types::RoleInfo; thread_local! { static COLUMNS: Rc>> = Rc::new(vec![ -- 2.47.2 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel