diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index 9331a8a5..a462c2ec 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -264,14 +264,19 @@ pub const DATASTORE_TUNING_STRING_SCHEMA: Schema = StringSchema::new("Datastore pub struct DataStoreConfig { #[updater(skip)] pub name: String, + #[updater(skip)] pub path: String, + #[serde(skip_serializing_if = "Option::is_none")] pub comment: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub gc_schedule: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub prune_schedule: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub keep_last: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -284,18 +289,23 @@ pub struct DataStoreConfig { pub keep_monthly: Option, #[serde(skip_serializing_if = "Option::is_none")] pub keep_yearly: Option, + /// If enabled, all backups will be verified right after completion. #[serde(skip_serializing_if = "Option::is_none")] pub verify_new: Option, + /// Send job email notification to this user #[serde(skip_serializing_if = "Option::is_none")] pub notify_user: Option, + /// Send notification only for job errors #[serde(skip_serializing_if = "Option::is_none")] pub notify: Option, + /// Datastore tuning options #[serde(skip_serializing_if = "Option::is_none")] pub tuning: Option, + /// Maintenance mode, type is either 'offline' or 'read-only', message should be enclosed in " #[serde(skip_serializing_if = "Option::is_none")] pub maintenance_mode: Option,