redfish_codegen/models/processor/v1_18_0/
fpga_reconfiguration_slot.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// 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.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct FpgaReconfigurationSlot {
10    #[serde(rename = "AccelerationFunction")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub acceleration_function: Option<models::odata_v4::IdRef>,
13    /// An indication of whether the reconfiguration slot can be reprogrammed from the host by using system software.
14    #[serde(rename = "ProgrammableFromHost")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub programmable_from_host: Option<bool>,
17    /// The FPGA reconfiguration slot identifier.
18    #[serde(rename = "SlotId")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub slot_id: Option<String>,
21    #[serde(rename = "UUID")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub uuid: Option<models::resource::UUID>,
24}
25
26impl crate::Metadata<'static> for FpgaReconfigurationSlot {
27    const JSON_SCHEMA: &'static str = "Processor.v1_18_0.json";
28}