From 1f35bbc4dcd6984e35e1fcbc2b3b0911cac2f3ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 29 Apr 2022 13:42:58 +0200 Subject: [PATCH] api: derive UpdaterType for BackupNamespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler Signed-off-by: Thomas Lamprecht --- pbs-api-types/src/datastore.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index 5ca102a2..55e4c152 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -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,