cloud_hypervisor_client/models/
vmm_ping_response.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/// VmmPingResponse : Virtual Machine Monitor information
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct VmmPingResponse {
17    #[serde(rename = "build_version", skip_serializing_if = "Option::is_none")]
18    pub build_version: Option<String>,
19    #[serde(rename = "version")]
20    pub version: String,
21    #[serde(rename = "pid", skip_serializing_if = "Option::is_none")]
22    pub pid: Option<i64>,
23    #[serde(rename = "features", skip_serializing_if = "Option::is_none")]
24    pub features: Option<Vec<String>>,
25}
26
27impl VmmPingResponse {
28    /// Virtual Machine Monitor information
29    pub fn new(version: String) -> VmmPingResponse {
30        VmmPingResponse {
31            build_version: None,
32            version,
33            pid: None,
34            features: None,
35        }
36    }
37}