Skip to main content

clientapi_pve/models/
nodes_ceph_getpool_response.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 NodesCephGetpoolResponse {
16
17    #[serde(rename = "data")]
18    pub data: Box<models::NodesCephGetpoolResponseData>,
19
20    /// Optional total count, present for paginated list responses.
21    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
22    pub total: Option<i32>,
23
24    /// Optional change summary returned by some PUT operations (one entry per modified field).
25    #[serde(rename = "changes", skip_serializing_if = "Option::is_none")]
26    pub changes: Option<serde_json::Value>,
27
28
29}
30
31impl NodesCephGetpoolResponse {
32    pub fn new(data: models::NodesCephGetpoolResponseData) -> NodesCephGetpoolResponse {
33        NodesCephGetpoolResponse {
34            
35            data: Box::new(data),
36            
37            total: None,
38            
39            changes: None,
40            
41        }
42    }
43}
44
45