cloud_hypervisor_client/models/
rng_config.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RngConfig {
16    #[serde(rename = "src")]
17    pub src: String,
18    #[serde(rename = "iommu", skip_serializing_if = "Option::is_none")]
19    pub iommu: Option<bool>,
20}
21
22impl RngConfig {
23    pub fn new(src: String) -> RngConfig {
24        RngConfig { src, iommu: None }
25    }
26}