[pbs-devel] [PATCH v3 proxmox 2/20] pbs api types: datastore: add trash marker to snapshot list item

Christian Ebner c.ebner at proxmox.com
Tue May 13 15:52:29 CEST 2025


Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
 pbs-api-types/src/datastore.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs
index d50d6f2b..ef5700d8 100644
--- a/pbs-api-types/src/datastore.rs
+++ b/pbs-api-types/src/datastore.rs
@@ -1311,6 +1311,9 @@ pub struct SnapshotListItem {
     /// Protection from prunes
     #[serde(default)]
     pub protected: bool,
+    /// Snapshot is marked as trash, only present if marked as trash
+    #[serde(skip_serializing_if = "Option::is_none")]
+    pub trash: Option<bool>,
 }
 
 #[api(
-- 
2.39.5





More information about the pbs-devel mailing list