Skip to content

Commit 936485d

Browse files
Merge pull request #13 from theseus-rs/correct-draft-release-bug
bug: correct bug where serialization fails when there is a draft release of the PostgreSQL binaries
2 parents 679b4d9 + 394a0e0 commit 936485d

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

postgresql_archive/src/github.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Structs for GitHub API responses
22
use serde::{Deserialize, Serialize};
3-
use serde_json::Value;
43

54
#[derive(Clone, Debug, Deserialize, Serialize)]
65
pub(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

Comments
 (0)