api: derive UpdaterType for BackupNamespace

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2022-04-29 13:42:58 +02:00 committed by Thomas Lamprecht
parent c5648f1920
commit c12a075b83
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ use serde::{Deserialize, Serialize};
use proxmox_schema::{
api, const_regex, ApiStringFormat, ApiType, ArraySchema, EnumEntry, IntegerSchema, ReturnType,
Schema, StringSchema, Updater,
Schema, StringSchema, Updater, UpdaterType,
};
use crate::{
@ -458,7 +458,7 @@ pub struct SnapshotVerifyState {
/// Implementation note: The path a namespace resolves to is always prefixed with `/ns` to avoid
/// clashes with backup group IDs and future backup_types and to have a clean separation between
/// the namespace directories and the ones from a backup snapshot.
#[derive(Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[derive(Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash, UpdaterType)]
pub struct BackupNamespace {
/// The namespace subdirectories without the `ns/` intermediate directories.
inner: Vec<String>,