redfish-codegen 0.3.1

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

use crate::models;

/// Additional versions.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct AdditionalVersions {
    /// The bootloader version contained in this software, such as U-Boot or UEFI.
    #[serde(rename = "Bootloader")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bootloader: Option<String>,
    /// The kernel version contained in this software.
    #[serde(rename = "Kernel")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kernel: Option<String>,
    /// The microcode version contained in this software, such as processor microcode.
    #[serde(rename = "Microcode")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub microcode: Option<String>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
}

impl crate::Metadata<'static> for AdditionalVersions {
    const JSON_SCHEMA: &'static str = "SoftwareInventory.v1_7_0.json";
}