File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
tests/routes/me/snapshots Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ expression: response.into_json()
10
10
" email_verification_sent" : true ,
11
11
" email_verified" : true ,
12
12
" id" : 1 ,
13
+ " is_admin" : false ,
13
14
" login" : " foo" ,
14
15
" name" : null ,
15
16
" url" : " https://github.com/foo"
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ expression: response.into_json()
16
16
" email_verification_sent" : true ,
17
17
" email_verified" : true ,
18
18
" id" : 1 ,
19
+ " is_admin" : false ,
19
20
" login" : " foo" ,
20
21
" name" : null ,
21
22
" url" : " https://github.com/foo"
Original file line number Diff line number Diff line change @@ -466,6 +466,7 @@ pub struct EncodablePrivateUser {
466
466
pub email : Option < String > ,
467
467
pub avatar : Option < String > ,
468
468
pub url : Option < String > ,
469
+ pub is_admin : bool ,
469
470
}
470
471
471
472
impl EncodablePrivateUser {
@@ -481,6 +482,7 @@ impl EncodablePrivateUser {
481
482
name,
482
483
gh_login,
483
484
gh_avatar,
485
+ is_admin,
484
486
..
485
487
} = user;
486
488
let url = format ! ( "https://github.com/{gh_login}" ) ;
@@ -494,6 +496,7 @@ impl EncodablePrivateUser {
494
496
login : gh_login,
495
497
name,
496
498
url : Some ( url) ,
499
+ is_admin,
497
500
}
498
501
}
499
502
}
You can’t perform that action at this time.
0 commit comments