hcloud 0.25.0

Unofficial Rust crate for accessing the Hetzner Cloud API
Documentation
/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 0.28.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DeleteServiceRequest : Request for POST https://api.hetzner.cloud/v1/load_balancers/{id}/actions/delete_service
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeleteServiceRequest {
    /// The listen port of the service you want to delete.
    #[serde(rename = "listen_port")]
    pub listen_port: i32,
}

impl DeleteServiceRequest {
    /// Request for POST https://api.hetzner.cloud/v1/load_balancers/{id}/actions/delete_service
    pub fn new(listen_port: i32) -> DeleteServiceRequest {
        DeleteServiceRequest { listen_port }
    }
}