prefer box
This commit is contained in:
parent
e5c9cb6024
commit
9b68b32354
@ -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>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user