wormhole_common/models/
release.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize, Debug)]
4pub struct ReleaseUploader {
5 pub login: String,
6 pub id: u64,
7 pub node_id: String,
8 pub avatar_url: String,
9 pub gravatar_id: String,
10 pub url: String,
11 pub html_url: String,
12 pub followers_url: String,
13 pub following_url: String,
14 pub gists_url: String,
15 pub starred_url: String,
16 pub subscriptions_url: String,
17 pub organizations_url: String,
18 pub repos_url: String,
19 pub events_url: String,
20 pub r#type: String,
21 pub site_admin: bool,
22}
23
24#[derive(Serialize, Deserialize, Debug)]
25pub struct ReleaseAsset {
26 pub url: String,
27 pub id: u64,
28 pub node_id: String,
29 pub name: String,
30 pub label: Option<String>,
31 pub uploader: ReleaseUploader,
32 pub content_type: String,
33 pub state: String,
34 pub size: u64,
35 pub download_count: u64,
36 pub created_at: String,
37 pub updated_at: String,
38 pub browser_download_url: String,
39}
40
41#[derive(Serialize, Deserialize, Debug)]
42pub struct ReleaseResponse {
43 pub url: String,
44 pub assets_url: String,
45 pub upload_url: String,
46 pub html_url: String,
47 pub id: u64,
48 pub author: ReleaseUploader,
49 pub node_id: String,
50 pub tag_name: String,
51 pub target_commitish: String,
52 pub name: String,
53 pub draft: bool,
54 pub prerelease: bool,
55 pub created_at: String,
56 pub published_at: String,
57 pub assets: Vec<ReleaseAsset>,
58 pub tarball_url: String,
59 pub zipball_url: String,
60 pub body: String,
61}