diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index 88724c3e..c96521cb 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -1361,6 +1361,23 @@ pub struct DataStoreStatusListItem { pub gc_status: Option, } +impl DataStoreStatusListItem { + pub fn empty(store: &str, err: Option) -> Self { + DataStoreStatusListItem { + store: store.to_owned(), + total: -1, + used: -1, + avail: -1, + history: None, + history_start: None, + history_delta: None, + estimated_full_date: None, + error: err, + gc_status: None, + } + } +} + pub const ADMIN_DATASTORE_LIST_SNAPSHOTS_RETURN_TYPE: ReturnType = ReturnType { optional: false, schema: &ArraySchema::new(