clientapi_pbs/models/backup_upgrade_create_fixed_close_request.rs
1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BackupUpgradeCreateFixedCloseRequest {
16
17 /// Number of new and re-indexed chunks. Used to verify that the server got all chunk digests.
18 #[serde(rename = "chunk-count")]
19 pub chunk_count: i64,
20
21 /// Digest list checksum.
22 #[serde(rename = "csum")]
23 pub csum: String,
24
25 /// File size. This is used to verify that the server got all data. Ignored for incremental backups.
26 #[serde(rename = "size")]
27 pub size: i64,
28
29 /// Fixed writer ID.
30 #[serde(rename = "wid")]
31 pub wid: i32,
32
33
34}
35
36impl BackupUpgradeCreateFixedCloseRequest {
37 pub fn new(chunk_count: i64, csum: String, size: i64, wid: i32) -> BackupUpgradeCreateFixedCloseRequest {
38 BackupUpgradeCreateFixedCloseRequest {
39
40 chunk_count,
41
42 csum,
43
44 size,
45
46 wid,
47
48 }
49 }
50}
51
52