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};

/// ExportZoneFileResponse : Response to GET https://api.hetzner.cloud/v1/zones/{id_or_name}/zonefile
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExportZoneFileResponse {
    /// Generated zone file.  Example:  ```dns $ORIGIN example.com. $TTL 3600  @ IN SOA hydrogen.ns.hetzner.com. dns.hetzner.com. 2024010100 86400 10800 3600000 3600  @ IN 10800 NS hydrogen.ns.hetzner.com. ; Some comment. @ IN 10800 NS oxygen.ns.hetzner.com. @ IN 10800 NS helium.ns.hetzner.de. ```
    #[serde(rename = "zonefile")]
    pub zonefile: String,
}

impl ExportZoneFileResponse {
    /// Response to GET https://api.hetzner.cloud/v1/zones/{id_or_name}/zonefile
    pub fn new(zonefile: String) -> ExportZoneFileResponse {
        ExportZoneFileResponse { zonefile }
    }
}