[pdm-devel] [RFC proxmox-datacenter-manager 3/5] pdm-api-types: derive Eq, PartialEq and Hash for RemoteUpid
Lukas Wagner
l.wagner at proxmox.com
Fri Dec 20 15:24:28 CET 2024
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
lib/pdm-api-types/src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pdm-api-types/src/lib.rs b/lib/pdm-api-types/src/lib.rs
index 4e6fe0a..bf312cc 100644
--- a/lib/pdm-api-types/src/lib.rs
+++ b/lib/pdm-api-types/src/lib.rs
@@ -339,7 +339,7 @@ pub const REMOTE_UPID_SCHEMA: Schema = StringSchema::new("A remote UPID")
.min_length("C!UPID:N:12345678:12345678:12345678:::".len())
.schema();
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Eq, PartialEq, Hash)]
pub struct RemoteUpid {
remote: String,
/// This is usually a pve upid, but may also be a pbs upid, they have distinct formats.
--
2.39.5
More information about the pdm-devel
mailing list