From 9430e767aa3f3ddd98c2de71a4770722ae7cf072 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 8 Mar 2022 02:12:28 +0000 Subject: feat: worker done :star: --- src/structures.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/structures.rs') 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, -- cgit v1.2.3