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