clientapi-pbs 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Backup Server API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NodesDisksGetSmartResponseDataAttributesInner {

    /// ATA Flags
    #[serde(rename = "flags", skip_serializing_if = "Option::is_none")]
    pub flags: Option<String>,

    /// ATA Attribute ID
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i64>,

    /// Attribute name
    #[serde(rename = "name")]
    pub name: String,

    /// ATA normalized value (0..100)
    #[serde(rename = "normalized", skip_serializing_if = "Option::is_none")]
    pub normalized: Option<f64>,

    /// Attribute raw value
    #[serde(rename = "raw")]
    pub raw: String,

    /// ATA threshold
    #[serde(rename = "threshold", skip_serializing_if = "Option::is_none")]
    pub threshold: Option<f64>,

    /// duplicate of raw - kept for API stability
    #[serde(rename = "value")]
    pub value: String,

    /// ATA worst
    #[serde(rename = "worst", skip_serializing_if = "Option::is_none")]
    pub worst: Option<f64>,


}

impl NodesDisksGetSmartResponseDataAttributesInner {
    pub fn new(name: String, raw: String, value: String) -> NodesDisksGetSmartResponseDataAttributesInner {
        NodesDisksGetSmartResponseDataAttributesInner {
            
            flags: None,
            
            id: None,
            
            name,
            
            normalized: None,
            
            raw,
            
            threshold: None,
            
            value,
            
            worst: None,
            
        }
    }
}