redfish_codegen/models/operating_config/v1_0_2/
turbo_profile_datapoint.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The turbo profile for a set of active cores.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct TurboProfileDatapoint {
9    /// The number of active cores to be configured with the specified maximum clock speed.
10    #[serde(rename = "ActiveCoreCount")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub active_core_count: Option<i64>,
13    /// The maximum turbo clock speed that correspond to the number of active cores in MHz.
14    #[serde(rename = "MaxSpeedMHz")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub max_speed_m_hz: Option<i64>,
17}
18
19impl crate::Metadata<'static> for TurboProfileDatapoint {
20    const JSON_SCHEMA: &'static str = "OperatingConfig.v1_0_2.json";
21}