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:
parent
c5648f1920
commit
c12a075b83
|
@ -6,7 +6,7 @@ use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use proxmox_schema::{
|
use proxmox_schema::{
|
||||||
api, const_regex, ApiStringFormat, ApiType, ArraySchema, EnumEntry, IntegerSchema, ReturnType,
|
api, const_regex, ApiStringFormat, ApiType, ArraySchema, EnumEntry, IntegerSchema, ReturnType,
|
||||||
Schema, StringSchema, Updater,
|
Schema, StringSchema, Updater, UpdaterType,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
@ -458,7 +458,7 @@ pub struct SnapshotVerifyState {
|
||||||
/// Implementation note: The path a namespace resolves to is always prefixed with `/ns` to avoid
|
/// 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
|
/// 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.
|
/// 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 {
|
pub struct BackupNamespace {
|
||||||
/// The namespace subdirectories without the `ns/` intermediate directories.
|
/// The namespace subdirectories without the `ns/` intermediate directories.
|
||||||
inner: Vec<String>,
|
inner: Vec<String>,
|
||||||
|
|
Loading…
Reference in New Issue