hcloud/models/delete_subnet_from_network_response.rs
1/*
2 * Hetzner Cloud API
3 *
4 * Copied from the official API documentation for the Public Hetzner Cloud.
5 *
6 * The version of the OpenAPI document: 4b3f595
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DeleteSubnetFromNetworkResponse : Response to POST https://api.hetzner.cloud/v1/networks/{id}/actions/delete_subnet
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeleteSubnetFromNetworkResponse {
17 #[serde(rename = "action")]
18 pub action: Box<models::Action>,
19}
20
21impl DeleteSubnetFromNetworkResponse {
22 /// Response to POST https://api.hetzner.cloud/v1/networks/{id}/actions/delete_subnet
23 pub fn new(action: models::Action) -> DeleteSubnetFromNetworkResponse {
24 DeleteSubnetFromNetworkResponse {
25 action: Box::new(action),
26 }
27 }
28}