]> git.proxmox.com Git - proxmox-backup.git/commitdiff
api-types: derive Ord for BackupDir
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 15 Nov 2022 09:16:54 +0000 (10:16 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 15 Nov 2022 09:16:54 +0000 (10:16 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
pbs-api-types/src/datastore.rs

index 4c9eda2f57f5ff9a5f9f78e7beaefa926aa15917..95aa883000fc86fcc27472202dae4b507e082f3a 100644 (file)
@@ -930,7 +930,7 @@ impl std::str::FromStr for BackupGroup {
 /// Uniquely identify a Backup (relative to data store)
 ///
 /// We also call this a backup snaphost.
-#[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize)]
+#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Deserialize, Serialize)]
 #[serde(rename_all = "kebab-case")]
 pub struct BackupDir {
     /// Backup group.