Skip to main content

clientapi_pve/models/
cluster_mapping_get_usb_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 ClusterMappingGetUsbResponseDataInner {
16
17    /// A description of the logical mapping.
18    #[serde(rename = "description")]
19    pub description: String,
20
21    #[serde(rename = "error", deserialize_with = "Option::deserialize")]
22    pub error: Option<serde_json::Value>,
23
24    /// The logical ID of the mapping.
25    #[serde(rename = "id")]
26    pub id: String,
27
28    /// The entries of the mapping.
29    #[serde(rename = "map")]
30    pub map: Vec<String>,
31
32
33}
34
35impl ClusterMappingGetUsbResponseDataInner {
36    pub fn new(description: String, error: Option<serde_json::Value>, id: String, map: Vec<String>) -> ClusterMappingGetUsbResponseDataInner {
37        ClusterMappingGetUsbResponseDataInner {
38            
39            description,
40            
41            error,
42            
43            id,
44            
45            map,
46            
47        }
48    }
49}
50
51