]> git.proxmox.com Git - proxmox-backup.git/commit - pbs-datastore/src/datastore.rs
api-types: introduce BackupType enum and Group/Dir api types
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 14 Apr 2022 13:05:58 +0000 (15:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Apr 2022 11:12:46 +0000 (13:12 +0200)
commit988d575dbbadfcace37bf7470ae6fa1cc877609a
tree02cc71121d71916ebd8a15a580151bebdc7d9901
parent33eb23d57e1785787e2e3e47406109e747a8611b
api-types: introduce BackupType enum and Group/Dir api types

The type is a real enum.

All are API types and implement Display and FromStr. The
ordering is the same as it is in pbs-datastore.

Also, they are now flattened into a few structs instead of
being copied manually.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 files changed:
examples/download-speed.rs
examples/upload-speed.rs
pbs-api-types/src/datastore.rs
pbs-api-types/src/tape/mod.rs
pbs-client/src/backup_reader.rs
pbs-client/src/backup_writer.rs
pbs-client/src/tools/mod.rs
pbs-datastore/src/backup_info.rs
pbs-datastore/src/datastore.rs
pbs-datastore/src/manifest.rs
proxmox-backup-client/src/benchmark.rs
proxmox-backup-client/src/catalog.rs
proxmox-backup-client/src/main.rs
proxmox-backup-client/src/mount.rs
proxmox-backup-client/src/snapshot.rs
src/api2/admin/datastore.rs
src/api2/backup/mod.rs
src/api2/reader/mod.rs
src/api2/tape/media.rs
src/backup/verify.rs
src/bin/proxmox-backup-manager.rs
src/bin/proxmox-tape.rs
src/server/pull.rs