feat: Update type of cloudflare response
Turns out that the results field can be null
This commit is contained in:
parent
ed57b709ec
commit
7ceb5c3c50
|
@ -5,7 +5,7 @@ use anyhow::{anyhow};
|
||||||
struct CloudflareListResponse {
|
struct CloudflareListResponse {
|
||||||
success: bool,
|
success: bool,
|
||||||
errors: Vec<String>,
|
errors: Vec<String>,
|
||||||
result: Vec<ObjectWithId>,
|
result: Option<Vec<ObjectWithId>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
|
|
Loading…
Reference in a new issue