mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-07 16:26:22 +00:00
DatastoteNotify: fix serde attributes
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
5116d051a8
commit
ded3a88888
@ -138,12 +138,16 @@ pub enum Notify {
|
|||||||
/// Datastore notify settings
|
/// Datastore notify settings
|
||||||
pub struct DatastoreNotify {
|
pub struct DatastoreNotify {
|
||||||
/// Garbage collection settings
|
/// Garbage collection settings
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub gc: Option<Notify>,
|
pub gc: Option<Notify>,
|
||||||
/// Verify job setting
|
/// Verify job setting
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub verify: Option<Notify>,
|
pub verify: Option<Notify>,
|
||||||
/// Sync job setting
|
/// Sync job setting
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub sync: Option<Notify>,
|
pub sync: Option<Notify>,
|
||||||
/// Prune job setting
|
/// Prune job setting
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub prune: Option<Notify>,
|
pub prune: Option<Notify>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user