Skip to main content

clientapi_pbs/models/
pbs_store_config.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 PbsStoreConfig {
16
17    #[serde(rename = "description", deserialize_with = "Option::deserialize")]
18    pub description: Option<serde_json::Value>,
19
20    /// Datastore mapping.
21    #[serde(rename = "items")]
22    pub items: String,
23
24    #[serde(rename = "type", deserialize_with = "Option::deserialize")]
25    pub r#type: Option<serde_json::Value>,
26
27
28}
29
30impl PbsStoreConfig {
31    pub fn new(description: Option<serde_json::Value>, items: String, r#type: Option<serde_json::Value>) -> PbsStoreConfig {
32        PbsStoreConfig {
33            
34            description,
35            
36            items,
37            
38            r#type,
39            
40        }
41    }
42}
43
44