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)] #[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,