Skip to main content

clientapi_pve/models/
nodes_capabilities_get_cpu_flags_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 NodesCapabilitiesGetCpuFlagsResponseDataInner {
16
17    /// Description of the CPU flag.
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20
21    /// Name of the CPU flag.
22    #[serde(rename = "name")]
23    pub name: String,
24
25    /// List of nodes supporting the CPU flag with the selected acceleration type (\"accel\").
26    #[serde(rename = "supported-on", skip_serializing_if = "Option::is_none")]
27    pub supported_on: Option<Vec<String>>,
28
29
30}
31
32impl NodesCapabilitiesGetCpuFlagsResponseDataInner {
33    pub fn new(name: String) -> NodesCapabilitiesGetCpuFlagsResponseDataInner {
34        NodesCapabilitiesGetCpuFlagsResponseDataInner {
35            
36            description: None,
37            
38            name,
39            
40            supported_on: None,
41            
42        }
43    }
44}
45
46