Skip to main content

clientapi_pve/models/
nodes_hardware_mdevscan_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 NodesHardwareMdevscanResponseDataInner {
16
17    /// The number of still available instances of this type.
18    #[serde(rename = "available")]
19    pub available: i64,
20
21    /// Additional description of the type.
22    #[serde(rename = "description")]
23    pub description: String,
24
25    /// A human readable name for the type.
26    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
27    pub name: Option<String>,
28
29    /// The name of the mdev type.
30    #[serde(rename = "type")]
31    pub r#type: String,
32
33
34}
35
36impl NodesHardwareMdevscanResponseDataInner {
37    pub fn new(available: i64, description: String, r#type: String) -> NodesHardwareMdevscanResponseDataInner {
38        NodesHardwareMdevscanResponseDataInner {
39            
40            available,
41            
42            description,
43            
44            name: None,
45            
46            r#type,
47            
48        }
49    }
50}
51
52