redfish-codegen 0.3.1

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


/// The identification information for a processor.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct ProcessorId {
    /// The effective family for this processor.
    #[serde(rename = "EffectiveFamily")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub effective_family: Option<String>,
    /// The effective model for this processor.
    #[serde(rename = "EffectiveModel")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub effective_model: Option<String>,
    /// The raw manufacturer-provided processor identification registers for this processor.
    #[serde(rename = "IdentificationRegisters")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub identification_registers: Option<String>,
    /// The microcode information for this processor.
    #[serde(rename = "MicrocodeInfo")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub microcode_info: Option<String>,
    /// The Protected Processor Identification Number (PPIN) for this processor.
    #[serde(rename = "ProtectedIdentificationNumber")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub protected_identification_number: Option<String>,
    /// The step value for this processor.
    #[serde(rename = "Step")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub step: Option<String>,
    /// The vendor identification for this processor.
    #[serde(rename = "VendorId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vendor_id: Option<String>,
}

impl crate::Metadata<'static> for ProcessorId {
    const JSON_SCHEMA: &'static str = "Processor.v1_17_0.json";
}