redfish_codegen/models/computer_system/v1_20_1/
processor_summary.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The central processors of the system in general detail.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct ProcessorSummary {
10    /// The number of processor cores in the system.
11    #[serde(rename = "CoreCount")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub core_count: Option<i64>,
14    /// The number of physical processors in the system.
15    #[serde(rename = "Count")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub count: Option<i64>,
18    /// The number of logical processors in the system.
19    #[serde(rename = "LogicalProcessorCount")]
20    #[serde(default, skip_serializing_if = "Option::is_none")]
21    pub logical_processor_count: Option<i64>,
22    #[serde(rename = "Metrics")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub metrics: Option<models::odata_v4::IdRef>,
25    /// The processor model for the primary or majority of processors in this system.
26    #[serde(rename = "Model")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub model: Option<String>,
29    #[serde(rename = "Status")]
30    #[serde(default, skip_serializing_if = "Option::is_none")]
31    pub status: Option<models::resource::Status>,
32    /// An indication of whether threading is enabled on all processors in this system.
33    #[serde(rename = "ThreadingEnabled")]
34    #[serde(default, skip_serializing_if = "Option::is_none")]
35    pub threading_enabled: Option<bool>,
36}
37
38impl crate::Metadata<'static> for ProcessorSummary {
39    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
40}