diff --git a/src/cloudflare.rs b/src/cloudflare.rs index d3b043c..448d630 100644 --- a/src/cloudflare.rs +++ b/src/cloudflare.rs @@ -14,7 +14,7 @@ use crate::get_current_public_ipv4; #[derive(Serialize, Deserialize, Clone, Debug)] struct DnsRecord { - id: String, + id: Box, #[serde(rename = "type")] record_type: Box, name: Box, @@ -32,8 +32,8 @@ struct DnsRecord { #[derive(Serialize, Deserialize, Debug)] struct CloudflareResponse { success: bool, - errors: Vec>, - messages: Vec>, + errors: Box<[HashMap, serde_json::Value>]>, + messages: Box<[HashMap, serde_json::Value>]>, result: Option>, }