Skip to main content

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