mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-23 20:47:59 +00:00
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
1b3a49c595
commit
1f35bbc4dc
@ -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
Block a user