netlify_rust/models/
dns_zone.rs

1/*
2 * Netlify's API documentation
3 *
4 * Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.  This document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify’s API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).  Additionally, we have two API clients for your convenience: - [Go Client](https://github.com/netlify/open-api#go-client) - [JS Client](https://github.com/netlify/js-client)
5 *
6 * The version of the OpenAPI document: 2.5.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DnsZone {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<String>,
18    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
21    pub errors: Option<Vec<String>>,
22    #[serde(rename = "supported_record_types", skip_serializing_if = "Option::is_none")]
23    pub supported_record_types: Option<Vec<String>>,
24    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
25    pub user_id: Option<String>,
26    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
27    pub created_at: Option<String>,
28    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
29    pub updated_at: Option<String>,
30    #[serde(rename = "records", skip_serializing_if = "Option::is_none")]
31    pub records: Option<Vec<crate::models::DnsRecord>>,
32    #[serde(rename = "dns_servers", skip_serializing_if = "Option::is_none")]
33    pub dns_servers: Option<Vec<String>>,
34    #[serde(rename = "account_id", skip_serializing_if = "Option::is_none")]
35    pub account_id: Option<String>,
36    #[serde(rename = "site_id", skip_serializing_if = "Option::is_none")]
37    pub site_id: Option<String>,
38    #[serde(rename = "account_slug", skip_serializing_if = "Option::is_none")]
39    pub account_slug: Option<String>,
40    #[serde(rename = "account_name", skip_serializing_if = "Option::is_none")]
41    pub account_name: Option<String>,
42    #[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
43    pub domain: Option<String>,
44    #[serde(rename = "ipv6_enabled", skip_serializing_if = "Option::is_none")]
45    pub ipv6_enabled: Option<bool>,
46    #[serde(rename = "dedicated", skip_serializing_if = "Option::is_none")]
47    pub dedicated: Option<bool>,
48}
49
50impl DnsZone {
51    pub fn new() -> DnsZone {
52        DnsZone {
53            id: None,
54            name: None,
55            errors: None,
56            supported_record_types: None,
57            user_id: None,
58            created_at: None,
59            updated_at: None,
60            records: None,
61            dns_servers: None,
62            account_id: None,
63            site_id: None,
64            account_slug: None,
65            account_name: None,
66            domain: None,
67            ipv6_enabled: None,
68            dedicated: None,
69        }
70    }
71}
72
73