From d1f438f51e90f2a9eb9251e941ab109253cb6b74 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 23 Nov 2023 09:52:05 +0100 Subject: [PATCH] pbs-api-types: derive Clone and PartialEq for BackupContent, SnapshotVerifyState, SnapshotListItem and GroupListItem Signed-off-by: Dietmar Maurer --- pbs-api-types/src/datastore.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index db9faa2c..1f619c9d 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -378,7 +378,7 @@ pub struct DataStoreListItem { }, }, )] -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Clone, PartialEq)] #[serde(rename_all = "kebab-case")] /// Basic information about archive files inside a backup snapshot. pub struct BackupContent { @@ -412,7 +412,7 @@ pub enum VerifyState { }, }, )] -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Clone, PartialEq)] /// Task properties. pub struct SnapshotVerifyState { /// UPID of the verify task @@ -1076,7 +1076,7 @@ impl std::str::FromStr for BackupPart { }, }, )] -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Clone, PartialEq)] #[serde(rename_all = "kebab-case")] /// Basic information about backup snapshot. pub struct SnapshotListItem { @@ -1122,7 +1122,7 @@ pub struct SnapshotListItem { }, }, )] -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Clone, PartialEq)] #[serde(rename_all = "kebab-case")] /// Basic information about a backup group. pub struct GroupListItem { -- 2.39.5