prefer box
This commit is contained in:
		@@ -14,7 +14,7 @@ use crate::get_current_public_ipv4;
 | 
			
		||||
 | 
			
		||||
#[derive(Serialize, Deserialize, Clone, Debug)]
 | 
			
		||||
struct DnsRecord {
 | 
			
		||||
    id: String,
 | 
			
		||||
    id: Box<str>,
 | 
			
		||||
    #[serde(rename = "type")]
 | 
			
		||||
    record_type: Box<str>,
 | 
			
		||||
    name: Box<str>,
 | 
			
		||||
@@ -32,8 +32,8 @@ struct DnsRecord {
 | 
			
		||||
#[derive(Serialize, Deserialize, Debug)]
 | 
			
		||||
struct CloudflareResponse {
 | 
			
		||||
    success: bool,
 | 
			
		||||
    errors: Vec<HashMap<String, serde_json::Value>>,
 | 
			
		||||
    messages: Vec<HashMap<String, serde_json::Value>>,
 | 
			
		||||
    errors: Box<[HashMap<Box<str>, serde_json::Value>]>,
 | 
			
		||||
    messages: Box<[HashMap<Box<str>, serde_json::Value>]>,
 | 
			
		||||
    result: Option<Vec<DnsRecord>>,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user