Avoid 3 value bools in userinfo

This commit is contained in:
Matthew Scheirer 2017-10-24 09:01:28 -04:00
parent 4d7a82e456
commit 3c802be578
1 changed files with 2 additions and 2 deletions

View File

@ -452,7 +452,7 @@ pub struct Userinfo {
#[serde(default)] #[serde(with = "url_serde")] pub picture: Option<Url>,
#[serde(default)] #[serde(with = "url_serde")] pub website: Option<Url>,
#[serde(default)] #[validate(email)] pub email: Option<String>,
#[serde(default)] pub email_verified: Option<bool>,
#[serde(default)] pub email_verified: bool,
// Isn't required to be just male or female
#[serde(default)] pub gender: Option<String>,
// ISO 9601:2004 YYYY-MM-DD or YYYY.
@ -463,7 +463,7 @@ pub struct Userinfo {
#[serde(default)] pub locale: Option<String>,
// Usually E.164 format number
#[serde(default)] pub phone_number: Option<String>,
#[serde(default)] pub phone_number_verified: Option<bool>,
#[serde(default)] pub phone_number_verified: bool,
#[serde(default)] pub address: Option<Address>,
#[serde(default)] pub updated_at: Option<i64>,
}