diff --git a/pbs-client/src/backup_specification.rs b/pbs-client/src/backup_specification.rs index 619a3a9d..66bf7196 100644 --- a/pbs-client/src/backup_specification.rs +++ b/pbs-client/src/backup_specification.rs @@ -1,4 +1,5 @@ use anyhow::{bail, Error}; +use serde::{Deserialize, Serialize}; use proxmox_schema::*; @@ -45,3 +46,28 @@ pub fn parse_backup_specification(value: &str) -> Result bool { + matches!(self, Self::Data) + } + /// Selected mode is metadata based file change detection + pub fn is_metadata(&self) -> bool { + matches!(self, Self::Metadata) + } +}