From a5093db6f321fc41fa42db0a7135a59a7801fb1a Mon Sep 17 00:00:00 2001 From: Stefan Reiter Date: Thu, 8 Jul 2021 16:45:27 +0200 Subject: [PATCH] api: add support for notes on backup groups Stored in atomically-updated 'notes' file in backup group directory. Available via dedicated GET/PUT API calls, as well as the first line being included in list_groups (similar to list_snapshots). Signed-off-by: Stefan Reiter Signed-off-by: Thomas Lamprecht --- pbs-api-types/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pbs-api-types/src/lib.rs b/pbs-api-types/src/lib.rs index 2d15e92e..f9fe5cfb 100644 --- a/pbs-api-types/src/lib.rs +++ b/pbs-api-types/src/lib.rs @@ -380,6 +380,9 @@ pub struct GroupListItem { /// The owner of group #[serde(skip_serializing_if = "Option::is_none")] pub owner: Option, + /// The first line from group "notes" + #[serde(skip_serializing_if="Option::is_none")] + pub comment: Option, } #[api(