1
1
//! Structs for GitHub API responses
2
2
use serde:: { Deserialize , Serialize } ;
3
- use serde_json:: Value ;
4
3
5
4
#[ derive( Clone , Debug , Deserialize , Serialize ) ]
6
5
pub ( crate ) struct Release {
@@ -9,41 +8,11 @@ pub(crate) struct Release {
9
8
pub upload_url : String ,
10
9
pub html_url : String ,
11
10
pub id : i64 ,
12
- pub author : Author ,
13
- pub node_id : String ,
14
11
pub tag_name : String ,
15
- pub target_commitish : String ,
16
12
pub name : String ,
17
13
pub draft : bool ,
18
14
pub prerelease : bool ,
19
- pub created_at : String ,
20
- pub published_at : String ,
21
15
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 ,
47
16
}
48
17
49
18
#[ derive( Clone , Debug , Deserialize , Serialize ) ]
@@ -53,12 +22,8 @@ pub(crate) struct Asset {
53
22
pub node_id : String ,
54
23
pub name : String ,
55
24
pub label : String ,
56
- pub uploader : Author ,
57
25
pub content_type : String ,
58
26
pub state : String ,
59
27
pub size : i64 ,
60
- pub download_count : i64 ,
61
- pub created_at : String ,
62
- pub updated_at : String ,
63
28
pub browser_download_url : String ,
64
29
}
0 commit comments