feat: Update type of cloudflare response

Turns out that the results field can be null
This commit is contained in:
Rostislav Raykov 2020-03-22 23:30:10 +01:00
parent ed57b709ec
commit 7ceb5c3c50

View file

@ -5,7 +5,7 @@ use anyhow::{anyhow};
struct CloudflareListResponse {
success: bool,
errors: Vec<String>,
result: Vec<ObjectWithId>,
result: Option<Vec<ObjectWithId>>,
}
#[derive(Deserialize, Debug)]