From 81cdba61810284977c981739601a43345ec35362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 27 Nov 2023 13:59:11 +0100 Subject: [PATCH] subscription: let ProductType derive Hash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit for usage in HashMap keys Signed-off-by: Fabian Grünbichler --- proxmox-subscription/src/subscription_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-subscription/src/subscription_info.rs b/proxmox-subscription/src/subscription_info.rs index dc10a2a8..42d7987f 100644 --- a/proxmox-subscription/src/subscription_info.rs +++ b/proxmox-subscription/src/subscription_info.rs @@ -61,7 +61,7 @@ impl std::fmt::Display for SubscriptionStatus { #[cfg_attr(feature = "api-types", api())] #[cfg_attr(feature = "api-types", derive(Updater))] -#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Debug, Clone, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)] #[serde(rename_all = "lowercase")] /// Product type pub enum ProductType {