cloud_hypervisor_client/models/
send_migration_data.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 SendMigrationData {
16    #[serde(rename = "destination_url")]
17    pub destination_url: String,
18    #[serde(rename = "local", skip_serializing_if = "Option::is_none")]
19    pub local: Option<bool>,
20}
21
22impl SendMigrationData {
23    pub fn new(destination_url: String) -> SendMigrationData {
24        SendMigrationData {
25            destination_url,
26            local: None,
27        }
28    }
29}