diff options
Diffstat (limited to 'src/structures.rs')
| -rw-r--r-- | src/structures.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/structures.rs b/src/structures.rs index 13f904d..0e9f227 100644 --- a/src/structures.rs +++ b/src/structures.rs @@ -10,6 +10,16 @@ pub struct GitHubAPIResponse { pub tree: Vec<GitHubAPIResponseTree>, pub truncated: bool, } +impl Default for GitHubAPIResponse { + fn default() -> Self { + GitHubAPIResponse { + sha: "rate limited".to_string(), + url: "rate limited".to_string(), + tree: vec![], + truncated: false, + } + } +} #[derive(Serialize, Deserialize, Debug)] pub struct GitHubAPIResponseTree { |