redfish_codegen/models/endpoint/v1_8_0/
pci_id.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// A PCI ID.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct PciId {
9    /// The Class Code, Subclass, and Programming Interface code of this PCIe function.
10    #[serde(rename = "ClassCode")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub class_code: Option<String>,
13    /// The Device ID of this PCIe function.
14    #[serde(rename = "DeviceId")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub device_id: Option<String>,
17    /// The PCI ID of the connected entity.
18    #[serde(rename = "FunctionNumber")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub function_number: Option<i64>,
21    /// The Subsystem ID of this PCIe function.
22    #[serde(rename = "SubsystemId")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub subsystem_id: Option<String>,
25    /// The Subsystem Vendor ID of this PCIe function.
26    #[serde(rename = "SubsystemVendorId")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub subsystem_vendor_id: Option<String>,
29    /// The Vendor ID of this PCIe function.
30    #[serde(rename = "VendorId")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub vendor_id: Option<String>,
33}
34
35impl crate::Metadata<'static> for PciId {
36    const JSON_SCHEMA: &'static str = "Endpoint.v1_8_0.json";
37}