Skip to main content

clientapi_pbs/models/
admin_datastore_get_files_response_data_inner.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 AdminDatastoreGetFilesResponseDataInner {
16
17    /// Defines whether data is encrypted (using an AEAD cipher), only signed, or neither.
18    #[serde(rename = "crypt-mode", skip_serializing_if = "Option::is_none")]
19    pub crypt_mode: Option<models::PbsAdminDatastoreCryptModeEnum>,
20
21    /// Backup archive name.
22    #[serde(rename = "filename")]
23    pub filename: String,
24
25    /// Archive size (from backup manifest).
26    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
27    pub size: Option<i64>,
28
29
30}
31
32impl AdminDatastoreGetFilesResponseDataInner {
33    pub fn new(filename: String) -> AdminDatastoreGetFilesResponseDataInner {
34        AdminDatastoreGetFilesResponseDataInner {
35            
36            crypt_mode: None,
37            
38            filename,
39            
40            size: None,
41            
42        }
43    }
44}
45
46