api-types: datastore type improvements

let BackupGroup implement Hash

let BackupGroup and BackupDir be AsRef<BackupGroup>
let BackupDir be AsRef<BackupDir>

the pbs-datastore types will implement these AsRefs as well

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2022-04-19 12:11:16 +02:00
parent 2d5c20c8f5
commit b444eb68af
2 changed files with 38 additions and 1 deletions

View File

@ -342,6 +342,7 @@ pub struct TapeBackupJobStatus {
/// Filter for matching `BackupGroup`s, for use with `BackupGroup::filter`.
pub enum GroupFilter {
/// BackupGroup type - either `vm`, `ct`, or `host`.
// FIXME: Should be `BackupType`
BackupType(String),
/// Full identifier of BackupGroup, including type
Group(String),