netlify_rust/models/
dns_record.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 DnsRecord {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<String>,
18    #[serde(rename = "hostname", skip_serializing_if = "Option::is_none")]
19    pub hostname: Option<String>,
20    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
21    pub _type: Option<String>,
22    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
23    pub value: Option<String>,
24    #[serde(rename = "ttl", skip_serializing_if = "Option::is_none")]
25    pub ttl: Option<i64>,
26    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
27    pub priority: Option<i64>,
28    #[serde(rename = "dns_zone_id", skip_serializing_if = "Option::is_none")]
29    pub dns_zone_id: Option<String>,
30    #[serde(rename = "site_id", skip_serializing_if = "Option::is_none")]
31    pub site_id: Option<String>,
32    #[serde(rename = "flag", skip_serializing_if = "Option::is_none")]
33    pub flag: Option<i32>,
34    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
35    pub tag: Option<String>,
36    #[serde(rename = "managed", skip_serializing_if = "Option::is_none")]
37    pub managed: Option<bool>,
38}
39
40impl DnsRecord {
41    pub fn new() -> DnsRecord {
42        DnsRecord {
43            id: None,
44            hostname: None,
45            _type: None,
46            value: None,
47            ttl: None,
48            priority: None,
49            dns_zone_id: None,
50            site_id: None,
51            flag: None,
52            tag: None,
53            managed: None,
54        }
55    }
56}
57
58