cloud_hypervisor_client/models/pci_device_info.rs
1/*
2 * Cloud Hypervisor API
3 *
4 * Local HTTP based API for managing and inspecting a cloud-hypervisor virtual machine.
5 *
6 * The version of the OpenAPI document: 0.3.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PciDeviceInfo : Information about a PCI device
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PciDeviceInfo {
17 #[serde(rename = "id")]
18 pub id: String,
19 #[serde(rename = "bdf")]
20 pub bdf: String,
21}
22
23impl PciDeviceInfo {
24 /// Information about a PCI device
25 pub fn new(id: String, bdf: String) -> PciDeviceInfo {
26 PciDeviceInfo { id, bdf }
27 }
28}