File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,10 @@ pub struct WPComUserInfo {
61
61
pub token_client_id : Option < u64 > ,
62
62
63
63
/// The user's avatar URL as set on WordPress.com or using Gravatar.
64
+ #[ serde( rename = "avatar_URL" ) ]
64
65
pub avatar_url : Option < String > ,
65
66
67
+ #[ serde( rename = "profile_URL" ) ]
66
68
/// The user's Gravatar profile URL.
67
69
pub profile_url : Option < String > ,
68
70
@@ -146,6 +148,8 @@ mod tests {
146
148
let user_info: WPComUserInfo =
147
149
serde_json:: from_slice ( json. as_slice ( ) ) . expect ( "Failed to deserialize user info" ) ;
148
150
assert_eq ! ( user_info. id, expected_id) ;
151
+ assert ! ( user_info. avatar_url. is_some( ) ) ;
152
+ assert ! ( user_info. profile_url. is_some( ) ) ;
149
153
}
150
154
151
155
fn test_json ( input : & str ) -> Result < Vec < u8 > , std:: io:: Error > {
You can’t perform that action at this time.
0 commit comments