Skip to main content

clientapi_pve/models/
cluster_mapping_get_dir_response_data_inner.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-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 ClusterMappingGetDirResponseDataInner {
16
17    /// A list of checks, only present if 'check-node' is set.
18    #[serde(rename = "checks", skip_serializing_if = "Option::is_none")]
19    pub checks: Option<Vec<models::ClusterMappingGetDirResponseDataInnerChecksInner>>,
20
21    /// A description of the logical mapping.
22    #[serde(rename = "description")]
23    pub description: String,
24
25    /// The logical ID of the mapping.
26    #[serde(rename = "id")]
27    pub id: String,
28
29    /// The entries of the mapping.
30    #[serde(rename = "map")]
31    pub map: Vec<String>,
32
33
34}
35
36impl ClusterMappingGetDirResponseDataInner {
37    pub fn new(description: String, id: String, map: Vec<String>) -> ClusterMappingGetDirResponseDataInner {
38        ClusterMappingGetDirResponseDataInner {
39            
40            checks: None,
41            
42            description,
43            
44            id,
45            
46            map,
47            
48        }
49    }
50}
51
52