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 @@ -13,6 +13,7 @@ expression: response.json()
1313 " is_admin" : false ,
1414 " login" : " foo" ,
1515 " name" : null ,
16+ " publish_notifications" : true ,
1617 " url" : " https://github.com/foo"
1718 }
1819}
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ expression: response.json()
1919 " is_admin" : false ,
2020 " login" : " foo" ,
2121 " name" : null ,
22+ " publish_notifications" : true ,
2223 " url" : " https://github.com/foo"
2324 }
2425}
Original file line number Diff line number Diff line change @@ -468,6 +468,7 @@ pub struct EncodablePrivateUser {
468468 pub avatar : Option < String > ,
469469 pub url : Option < String > ,
470470 pub is_admin : bool ,
471+ pub publish_notifications : bool ,
471472}
472473
473474impl EncodablePrivateUser {
@@ -484,6 +485,7 @@ impl EncodablePrivateUser {
484485 gh_login,
485486 gh_avatar,
486487 is_admin,
488+ publish_notifications,
487489 ..
488490 } = user;
489491 let url = format ! ( "https://github.com/{gh_login}" ) ;
@@ -498,6 +500,7 @@ impl EncodablePrivateUser {
498500 name,
499501 url : Some ( url) ,
500502 is_admin,
503+ publish_notifications,
501504 }
502505 }
503506}
You can’t perform that action at this time.
0 commit comments