clientapi_pbs/models/nodes_status_get_status_response_data_memory.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/// NodesStatusGetStatusResponseDataMemory : Node memory usage counters
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NodesStatusGetStatusResponseDataMemory {
17
18 /// Free memory
19 #[serde(rename = "free")]
20 pub free: i64,
21
22 /// Total memory
23 #[serde(rename = "total")]
24 pub total: i64,
25
26 /// Used memory
27 #[serde(rename = "used")]
28 pub used: i64,
29
30
31}
32
33impl NodesStatusGetStatusResponseDataMemory {
34 /// Node memory usage counters
35 pub fn new(free: i64, total: i64, used: i64) -> NodesStatusGetStatusResponseDataMemory {
36 NodesStatusGetStatusResponseDataMemory {
37
38 free,
39
40 total,
41
42 used,
43
44 }
45 }
46}
47
48