Skip to main content

clientapi_pbs/models/
admin_datastore_get_status_response_data_counts.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/// AdminDatastoreGetStatusResponseDataCounts : Counts of groups/snapshots per BackupType.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AdminDatastoreGetStatusResponseDataCounts {
17
18    #[serde(rename = "ct", skip_serializing_if = "Option::is_none")]
19    pub ct: Option<Box<models::AdminDatastoreGetStatusResponseDataCountsCt>>,
20
21    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
22    pub host: Option<Box<models::AdminDatastoreGetStatusResponseDataCountsCt>>,
23
24    #[serde(rename = "other", skip_serializing_if = "Option::is_none")]
25    pub other: Option<Box<models::AdminDatastoreGetStatusResponseDataCountsCt>>,
26
27    #[serde(rename = "vm", skip_serializing_if = "Option::is_none")]
28    pub vm: Option<Box<models::AdminDatastoreGetStatusResponseDataCountsCt>>,
29
30
31}
32
33impl AdminDatastoreGetStatusResponseDataCounts {
34    /// Counts of groups/snapshots per BackupType.
35    pub fn new() -> AdminDatastoreGetStatusResponseDataCounts {
36        AdminDatastoreGetStatusResponseDataCounts {
37            
38            ct: None,
39            
40            host: None,
41            
42            other: None,
43            
44            vm: None,
45            
46        }
47    }
48}
49
50