cloud_hypervisor_client/models/
numa_distance.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 NumaDistance {
16    #[serde(rename = "destination")]
17    pub destination: i32,
18    #[serde(rename = "distance")]
19    pub distance: i32,
20}
21
22impl NumaDistance {
23    pub fn new(destination: i32, distance: i32) -> NumaDistance {
24        NumaDistance {
25            destination,
26            distance,
27        }
28    }
29}