clientapi_pbs/models/nodes_status_get_status_response_data_cpuinfo.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/// NodesStatusGetStatusResponseDataCpuinfo : Information about the CPU
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NodesStatusGetStatusResponseDataCpuinfo {
17
18 /// The number of CPU cores (incl. threads)
19 #[serde(rename = "cpus")]
20 pub cpus: i64,
21
22 /// The CPU model
23 #[serde(rename = "model")]
24 pub model: String,
25
26 /// The number of CPU sockets
27 #[serde(rename = "sockets")]
28 pub sockets: i64,
29
30
31}
32
33impl NodesStatusGetStatusResponseDataCpuinfo {
34 /// Information about the CPU
35 pub fn new(cpus: i64, model: String, sockets: i64) -> NodesStatusGetStatusResponseDataCpuinfo {
36 NodesStatusGetStatusResponseDataCpuinfo {
37
38 cpus,
39
40 model,
41
42 sockets,
43
44 }
45 }
46}
47
48