redfish-codegen 0.3.1

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


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum ProcessorArchitecture {
    /// x86 or x86-64.
    #[serde(rename = "x86")]
    X86,
    /// Intel Itanium.
    #[serde(rename = "IA-64")]
    IA64,
    /// ARM.
    ARM,
    /// MIPS.
    MIPS,
    /// Power. Added in version v1_4_0.
    Power,
    /// OEM-defined.
    OEM,
}

#[allow(clippy::derivable_impls)]
impl Default for ProcessorArchitecture {
     fn default() -> ProcessorArchitecture {
        ProcessorArchitecture::X86
     }
}

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