From 9b68b3235492cd4df5e24f86fea03ac4c9e6cdbf Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Thu, 25 Jul 2024 21:07:31 +0200 Subject: [PATCH] prefer box --- src/cloudflare.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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>, }