mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-14 01:44:56 +00:00
pbs-api-types: derive Clone and PartialEq for BackupContent, SnapshotVerifyState, SnapshotListItem and GroupListItem
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
486415f517
commit
56575dfc62
@ -378,7 +378,7 @@ pub struct DataStoreListItem {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
)]
|
)]
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize, Clone, PartialEq)]
|
||||||
#[serde(rename_all = "kebab-case")]
|
#[serde(rename_all = "kebab-case")]
|
||||||
/// Basic information about archive files inside a backup snapshot.
|
/// Basic information about archive files inside a backup snapshot.
|
||||||
pub struct BackupContent {
|
pub struct BackupContent {
|
||||||
@ -412,7 +412,7 @@ pub enum VerifyState {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
)]
|
)]
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize, Clone, PartialEq)]
|
||||||
/// Task properties.
|
/// Task properties.
|
||||||
pub struct SnapshotVerifyState {
|
pub struct SnapshotVerifyState {
|
||||||
/// UPID of the verify task
|
/// 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")]
|
#[serde(rename_all = "kebab-case")]
|
||||||
/// Basic information about backup snapshot.
|
/// Basic information about backup snapshot.
|
||||||
pub struct SnapshotListItem {
|
pub struct SnapshotListItem {
|
||||||
@ -1122,7 +1122,7 @@ pub struct SnapshotListItem {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
)]
|
)]
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize, Clone, PartialEq)]
|
||||||
#[serde(rename_all = "kebab-case")]
|
#[serde(rename_all = "kebab-case")]
|
||||||
/// Basic information about a backup group.
|
/// Basic information about a backup group.
|
||||||
pub struct GroupListItem {
|
pub struct GroupListItem {
|
||||||
|
Loading…
Reference in New Issue
Block a user