We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba17e27 commit 9ae0031Copy full SHA for 9ae0031
1 file changed
libs/blockscout-auth/src/user.rs
@@ -14,9 +14,9 @@ const API_KEY_NAME: &str = "api_key";
14
pub struct UserInfo {
15
pub address_hash: Option<String>, // virtual field
16
pub avatar: Option<String>, // nullable in DB
17
- pub email: String, // null: false
18
- pub name: Option<String>, // virtual field
19
- pub nickname: Option<String>, // virtual field
+ pub email: Option<String>, // null: false, but can be empty in response because account might be by wallet only
+ pub name: Option<String>, // virtual field
+ pub nickname: Option<String>, // virtual field
20
}
21
22
#[derive(Debug, Deserialize)]
0 commit comments