/*
* 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};
/// GetRrsetResponse : Response to GET https://api.hetzner.cloud/v1/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetRrsetResponse {
#[serde(rename = "rrset")]
pub rrset: Box<models::ResourceRecordSet>,
}
impl GetRrsetResponse {
/// Response to GET https://api.hetzner.cloud/v1/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}
pub fn new(rrset: models::ResourceRecordSet) -> GetRrsetResponse {
GetRrsetResponse {
rrset: Box::new(rrset),
}
}
}