Skip to main content

clientapi_pbs/models/
nodes_disks_get_smart_response_data.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct NodesDisksGetSmartResponseData {
16
17    /// SMART attributes.
18    #[serde(rename = "attributes")]
19    pub attributes: Vec<models::NodesDisksGetSmartResponseDataAttributesInner>,
20
21    /// SMART status
22    #[serde(rename = "status")]
23    pub status: models::PbsStatusEnum,
24
25    /// Wearout level.
26    #[serde(rename = "wearout", skip_serializing_if = "Option::is_none")]
27    pub wearout: Option<f64>,
28
29
30}
31
32impl NodesDisksGetSmartResponseData {
33    pub fn new(attributes: Vec<models::NodesDisksGetSmartResponseDataAttributesInner>, status: models::PbsStatusEnum) -> NodesDisksGetSmartResponseData {
34        NodesDisksGetSmartResponseData {
35            
36            attributes,
37            
38            status,
39            
40            wearout: None,
41            
42        }
43    }
44}
45
46