diff options
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, |