forked from proxmox-mirrors/proxmox
DatastoteNotify: fix serde attributes
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
a5f67f200d
commit
ecca38b94b
@ -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