hcloud 0.26.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: 4b3f595
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// ResourceRecordWithComment : Record of a RRSet.  The `value` is used to identify the record in an RRSet.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ResourceRecordWithComment {
    /// New comment for the record.
    #[serde(rename = "comment")]
    pub comment: String,
    /// Value of the record to update.
    #[serde(rename = "value")]
    pub value: String,
}

impl ResourceRecordWithComment {
    /// Record of a RRSet.  The `value` is used to identify the record in an RRSet.
    pub fn new(comment: String, value: String) -> ResourceRecordWithComment {
        ResourceRecordWithComment { comment, value }
    }
}