Skip to content

Commit

Permalink
zone: make Owner have default values
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasqueirozb committed Jan 20, 2024
1 parent b4fa5ef commit 30c623c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cloudflare/src/endpoints/zone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,14 @@ 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<String>,
email: Option<String>,
},
Organization {
id: Option<String>,
name: Option<String>,
},
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand Down

0 comments on commit 30c623c

Please sign in to comment.