From 02397fc4211886548a31a0731b240f2e17309de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 Jan 2023 21:17:47 +0100 Subject: [PATCH] fix: mark fields not always returned by the API as optional --- cloudflare/src/endpoints/zone.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudflare/src/endpoints/zone.rs b/cloudflare/src/endpoints/zone.rs index 89b28d42..626a75c7 100644 --- a/cloudflare/src/endpoints/zone.rs +++ b/cloudflare/src/endpoints/zone.rs @@ -104,8 +104,8 @@ pub enum Status { #[derive(Deserialize, Debug)] #[serde(rename_all = "lowercase", tag = "type")] pub enum Owner { - User { id: String, email: String }, - Organization { id: String, name: String }, + User { id: Option, email: Option }, + Organization { id: Option, name: Option }, } #[derive(Serialize, Deserialize, Debug, Clone)]