Change identifier number for DnsType and make Instance zone_id public

This commit is contained in:
Neshura 2023-02-27 15:56:03 +01:00
parent b6dd98f224
commit fdf2f53e8b
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A

View file

@ -17,9 +17,9 @@ struct CloudflareDnsZone {
#[derive(Display, IntoStaticStr)]
pub enum CloudflareDnsType {
#[strum(serialize = "A")]
A,
A = 4,
#[strum(serialize = "AAAA")]
AAAA,
AAAA = 6,
TXT,
MX
}
@ -27,7 +27,7 @@ pub enum CloudflareDnsType {
#[derive(Serialize, Deserialize)]
pub struct CloudflareDnsEntry {
id: String,
zone_id: String,
pub zone_id: String,
pub name: String,
pub r#type: CloudflareDnsType,
content: String,