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;

/// This type describes the FPGA reconfiguration slot.  An FPGA uses a reconfiguration slot to contain an acceleration function that can change as the FPGA is provisioned.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct FpgaReconfigurationSlot {
    #[serde(rename = "AccelerationFunction")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub acceleration_function: Option<models::odata_v4::IdRef>,
    /// An indication of whether the reconfiguration slot can be reprogrammed from the host by using system software.
    #[serde(rename = "ProgrammableFromHost")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub programmable_from_host: Option<bool>,
    /// The FPGA reconfiguration slot identifier.
    #[serde(rename = "SlotId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub slot_id: Option<String>,
    #[serde(rename = "UUID")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uuid: Option<models::resource::UUID>,
}

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