redfish-codegen 0.3.1

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


/// The turbo profile for a set of active cores.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct TurboProfileDatapoint {
    /// The number of active cores to be configured with the specified maximum clock speed.
    #[serde(rename = "ActiveCoreCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub active_core_count: Option<i64>,
    /// The maximum turbo clock speed that correspond to the number of active cores in MHz.
    #[serde(rename = "MaxSpeedMHz")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_speed_m_hz: Option<i64>,
}

impl crate::Metadata<'static> for TurboProfileDatapoint {
    const JSON_SCHEMA: &'static str = "OperatingConfig.v1_0_2.json";
}