Skip to main content

clientapi_pbs/models/
admin_datastore_get_groups_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 AdminDatastoreGetGroupsResponseDataInner {
16
17    /// Number of contained snapshots
18    #[serde(rename = "backup-count")]
19    pub backup_count: i64,
20
21    /// Backup ID.
22    #[serde(rename = "backup-id")]
23    pub backup_id: String,
24
25    /// Backup types.
26    #[serde(rename = "backup-type")]
27    pub backup_type: models::PbsBackupTypeEnum,
28
29    /// The first line from group \"notes\"
30    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
31    pub comment: Option<String>,
32
33    /// List of contained archive files.
34    #[serde(rename = "files")]
35    pub files: Vec<String>,
36
37    /// Backup time (Unix epoch.)
38    #[serde(rename = "last-backup")]
39    pub last_backup: i64,
40
41    /// Authentication ID
42    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
43    pub owner: Option<String>,
44
45
46}
47
48impl AdminDatastoreGetGroupsResponseDataInner {
49    pub fn new(backup_count: i64, backup_id: String, backup_type: models::PbsBackupTypeEnum, files: Vec<String>, last_backup: i64) -> AdminDatastoreGetGroupsResponseDataInner {
50        AdminDatastoreGetGroupsResponseDataInner {
51            
52            backup_count,
53            
54            backup_id,
55            
56            backup_type,
57            
58            comment: None,
59            
60            files,
61            
62            last_backup,
63            
64            owner: None,
65            
66        }
67    }
68}
69
70