Skip to main content

clientapi_pbs/models/
backup_upgrade_create_fixed_index_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 BackupUpgradeCreateFixedIndexRequest {
16
17    /// Backup archive name.
18    #[serde(rename = "archive-name")]
19    pub archive_name: String,
20
21    /// If set, compare last backup's csum and reuse index for incremental backup if it matches.
22    #[serde(rename = "reuse-csum", skip_serializing_if = "Option::is_none")]
23    pub reuse_csum: Option<String>,
24
25    /// File size.
26    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
27    pub size: Option<i64>,
28
29
30}
31
32impl BackupUpgradeCreateFixedIndexRequest {
33    pub fn new(archive_name: String) -> BackupUpgradeCreateFixedIndexRequest {
34        BackupUpgradeCreateFixedIndexRequest {
35            
36            archive_name,
37            
38            reuse_csum: None,
39            
40            size: None,
41            
42        }
43    }
44}
45
46