redfish-codegen 0.3.1

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


/// A PCI ID.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct PciId {
    /// The Class Code, Subclass, and Programming Interface code of this PCIe function.
    #[serde(rename = "ClassCode")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub class_code: Option<String>,
    /// The Device ID of this PCIe function.
    #[serde(rename = "DeviceId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub device_id: Option<String>,
    /// The PCI ID of the connected entity.
    #[serde(rename = "FunctionNumber")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub function_number: Option<i64>,
    /// The Subsystem ID of this PCIe function.
    #[serde(rename = "SubsystemId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subsystem_id: Option<String>,
    /// The Subsystem Vendor ID of this PCIe function.
    #[serde(rename = "SubsystemVendorId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subsystem_vendor_id: Option<String>,
    /// The Vendor ID of this PCIe function.
    #[serde(rename = "VendorId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vendor_id: Option<String>,
}

impl crate::Metadata<'static> for PciId {
    const JSON_SCHEMA: &'static str = "Endpoint.v1_8_0.json";
}