Change identifier number for DnsType and make Instance zone_id public
This commit is contained in:
parent
b6dd98f224
commit
fdf2f53e8b
1 changed files with 3 additions and 3 deletions
|
@ -17,9 +17,9 @@ struct CloudflareDnsZone {
|
||||||
#[derive(Display, IntoStaticStr)]
|
#[derive(Display, IntoStaticStr)]
|
||||||
pub enum CloudflareDnsType {
|
pub enum CloudflareDnsType {
|
||||||
#[strum(serialize = "A")]
|
#[strum(serialize = "A")]
|
||||||
A,
|
A = 4,
|
||||||
#[strum(serialize = "AAAA")]
|
#[strum(serialize = "AAAA")]
|
||||||
AAAA,
|
AAAA = 6,
|
||||||
TXT,
|
TXT,
|
||||||
MX
|
MX
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ pub enum CloudflareDnsType {
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
pub struct CloudflareDnsEntry {
|
pub struct CloudflareDnsEntry {
|
||||||
id: String,
|
id: String,
|
||||||
zone_id: String,
|
pub zone_id: String,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub r#type: CloudflareDnsType,
|
pub r#type: CloudflareDnsType,
|
||||||
content: String,
|
content: String,
|
||||||
|
|
Loading…
Reference in a new issue