Skip to main content

clientapi_pve/models/
nodes_status_status_response_data_memory.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 NodesStatusStatusResponseDataMemory {
16
17    /// The available memory in bytes.
18    #[serde(rename = "available")]
19    pub available: i64,
20
21    /// The free memory in bytes.
22    #[serde(rename = "free")]
23    pub free: i64,
24
25    /// The total memory in bytes.
26    #[serde(rename = "total")]
27    pub total: i64,
28
29    /// The used memory in bytes.
30    #[serde(rename = "used")]
31    pub used: i64,
32
33
34}
35
36impl NodesStatusStatusResponseDataMemory {
37    pub fn new(available: i64, free: i64, total: i64, used: i64) -> NodesStatusStatusResponseDataMemory {
38        NodesStatusStatusResponseDataMemory {
39            
40            available,
41            
42            free,
43            
44            total,
45            
46            used,
47            
48        }
49    }
50}
51
52