11//! Structs for GitHub API responses
22use serde:: { Deserialize , Serialize } ;
3- use serde_json:: Value ;
43
54#[ derive( Clone , Debug , Deserialize , Serialize ) ]
65pub ( crate ) struct Release {
@@ -9,41 +8,11 @@ pub(crate) struct Release {
98 pub upload_url : String ,
109 pub html_url : String ,
1110 pub id : i64 ,
12- pub author : Author ,
13- pub node_id : String ,
1411 pub tag_name : String ,
15- pub target_commitish : String ,
1612 pub name : String ,
1713 pub draft : bool ,
1814 pub prerelease : bool ,
19- pub created_at : String ,
20- pub published_at : String ,
2115 pub assets : Vec < Asset > ,
22- pub tarball_url : String ,
23- pub zipball_url : String ,
24- pub body : Option < Value > ,
25- }
26-
27- #[ derive( Clone , Debug , Deserialize , Serialize ) ]
28- pub ( crate ) struct Author {
29- pub login : String ,
30- pub id : i64 ,
31- pub node_id : String ,
32- pub avatar_url : String ,
33- pub gravatar_id : String ,
34- pub url : String ,
35- pub html_url : String ,
36- pub followers_url : String ,
37- pub following_url : String ,
38- pub gists_url : String ,
39- pub starred_url : String ,
40- pub subscriptions_url : String ,
41- pub organizations_url : String ,
42- pub repos_url : String ,
43- pub events_url : String ,
44- pub received_events_url : String ,
45- pub r#type : String ,
46- pub site_admin : bool ,
4716}
4817
4918#[ derive( Clone , Debug , Deserialize , Serialize ) ]
@@ -53,12 +22,8 @@ pub(crate) struct Asset {
5322 pub node_id : String ,
5423 pub name : String ,
5524 pub label : String ,
56- pub uploader : Author ,
5725 pub content_type : String ,
5826 pub state : String ,
5927 pub size : i64 ,
60- pub download_count : i64 ,
61- pub created_at : String ,
62- pub updated_at : String ,
6328 pub browser_download_url : String ,
6429}
0 commit comments