Skip to main content

clientapi_pbs/models/
backup_upgrade_create_dynamic_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 BackupUpgradeCreateDynamicCloseRequest {
16
17    /// Chunk count. This is used to verify that the server got all chunks.
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.
26    #[serde(rename = "size")]
27    pub size: i64,
28
29    /// Dynamic writer ID.
30    #[serde(rename = "wid")]
31    pub wid: i32,
32
33
34}
35
36impl BackupUpgradeCreateDynamicCloseRequest {
37    pub fn new(chunk_count: i64, csum: String, size: i64, wid: i32) -> BackupUpgradeCreateDynamicCloseRequest {
38        BackupUpgradeCreateDynamicCloseRequest {
39            
40            chunk_count,
41            
42            csum,
43            
44            size,
45            
46            wid,
47            
48        }
49    }
50}
51
52