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