src/bin/proxmox-backup-client.rs: correctly format prune result list.

This commit is contained in:
Dietmar Maurer
2020-05-05 06:45:37 +02:00
parent 96feecd621
commit db1e061dcb
3 changed files with 52 additions and 4 deletions

View File

@ -391,6 +391,30 @@ pub struct SnapshotListItem {
pub size: Option<u64>,
}
#[api(
properties: {
"backup-type": {
schema: BACKUP_TYPE_SCHEMA,
},
"backup-id": {
schema: BACKUP_ID_SCHEMA,
},
"backup-time": {
schema: BACKUP_TIME_SCHEMA,
},
},
)]
#[derive(Serialize, Deserialize)]
#[serde(rename_all="kebab-case")]
/// Prune result.
pub struct PruneListItem {
pub backup_type: String, // enum
pub backup_id: String,
pub backup_time: i64,
/// Keep snapshot
pub keep: bool,
}
#[api(
properties: {
"filename": {