diff options
| author | Fuwn <[email protected]> | 2022-03-08 02:12:28 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-08 02:12:28 +0000 |
| commit | 9430e767aa3f3ddd98c2de71a4770722ae7cf072 (patch) | |
| tree | 303a551c93eee32f900c9022bbbec5cb6d2ed91b /src/structures.rs | |
| parent | chore: licensing (diff) | |
| download | api-worker-9430e767aa3f3ddd98c2de71a4770722ae7cf072.tar.xz api-worker-9430e767aa3f3ddd98c2de71a4770722ae7cf072.zip | |
feat: worker done :star:
Diffstat (limited to 'src/structures.rs')
| -rw-r--r-- | src/structures.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/structures.rs b/src/structures.rs index 4ed5f47..3e9b7bc 100644 --- a/src/structures.rs +++ b/src/structures.rs @@ -20,7 +20,7 @@ use serde_derive::{Deserialize, Serialize}; -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize)] pub struct GitHubAPIResponse { pub sha: String, pub url: String, @@ -29,7 +29,7 @@ pub struct GitHubAPIResponse { } impl Default for GitHubAPIResponse { fn default() -> Self { - GitHubAPIResponse { + Self { sha: "rate limited".to_string(), url: "rate limited".to_string(), tree: vec![], @@ -38,17 +38,17 @@ impl Default for GitHubAPIResponse { } } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Default)] pub struct GitHubAPIResponseTree { - pub path: String, - pub mode: String, + pub path: String, + pub mode: String, #[serde(rename = "type")] - pub _type: String, - pub sha: String, - pub url: String, + pub r#type: String, + pub sha: String, + pub url: String, } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Default)] pub struct SenpyRandom { pub language: String, pub image: String, |