redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.

use crate::models;

/// The central processors of the system in general detail.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct ProcessorSummary {
    /// The number of processor cores in the system.
    #[serde(rename = "CoreCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub core_count: Option<i64>,
    /// The number of physical processors in the system.
    #[serde(rename = "Count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i64>,
    /// The number of logical processors in the system.
    #[serde(rename = "LogicalProcessorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub logical_processor_count: Option<i64>,
    #[serde(rename = "Metrics")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metrics: Option<models::odata_v4::IdRef>,
    /// The processor model for the primary or majority of processors in this system.
    #[serde(rename = "Model")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub model: Option<String>,
    #[serde(rename = "Status")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<models::resource::Status>,
    /// An indication of whether threading is enabled on all processors in this system.
    #[serde(rename = "ThreadingEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub threading_enabled: Option<bool>,
}

impl crate::Metadata<'static> for ProcessorSummary {
    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_0.json";
}