From 94a6b33680b50647efec19937cb47bd5c82cc34c Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 16 Nov 2021 10:21:05 +0100 Subject: [PATCH] set default for 'protected' flag otherwise we cannot properly parse the api return value from older versions, since that field does not exist there. fixes sync from older versions without the protected feature Signed-off-by: Dominik Csapak --- pbs-api-types/src/datastore.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index b1dd09d4..693ddfb8 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -396,6 +396,7 @@ pub struct SnapshotListItem { #[serde(skip_serializing_if = "Option::is_none")] pub owner: Option, /// Protection from prunes + #[serde(default)] pub protected: bool, }