From 7cb2d72b97a662cb5dbdb94086d17ee433af1453 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sun, 12 Nov 2023 12:02:19 +0100 Subject: [PATCH] DatastoreTuning: fix serde attributes Signed-off-by: Dietmar Maurer --- pbs-api-types/src/datastore.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index 73c4890e..db9faa2c 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -213,7 +213,9 @@ pub enum DatastoreFSyncLevel { /// Datastore tuning options pub struct DatastoreTuning { /// Iterate chunks in this order + #[serde(skip_serializing_if = "Option::is_none")] pub chunk_order: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub sync_level: Option, }