aboutsummaryrefslogtreecommitdiffstats
path: root/src/repo.rs
diff options
context:
space:
mode:
authorTeddy Wing2021-05-29 16:37:09 +0200
committerTeddy Wing2021-05-29 16:37:09 +0200
commit33a08a9159379588871442672f7c7362ba352501 (patch)
tree2a32f54416051ce4d924afad8bda7bf7e2fa46a2 /src/repo.rs
parent1a9a3ecf18cd71898be230e2045b2d907f8fcdd7 (diff)
downloadreflectub-33a08a9159379588871442672f7c7362ba352501.tar.bz2
Split GitHub API request into separate files
Diffstat (limited to 'src/repo.rs')
-rw-r--r--src/repo.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/repo.rs b/src/repo.rs
new file mode 100644
index 0000000..e934be2
--- /dev/null
+++ b/src/repo.rs
@@ -0,0 +1,13 @@
+use serde::Deserialize;
+
+
+#[derive(Debug, Deserialize)]
+pub struct Repo {
+ id: usize,
+ name: String,
+ description: Option<String>,
+ fork: bool,
+ git_url: String,
+ default_branch: String,
+ updated_at: String, // TODO: Maybe parse to date?
+}