diff options
author | Teddy Wing | 2021-05-30 00:13:47 +0200 |
---|---|---|
committer | Teddy Wing | 2021-05-30 00:14:27 +0200 |
commit | 768b67c966e9a78864b450b6051974d096f1d412 (patch) | |
tree | 7da6f88c3f0b39a2a614db9e9a28502a5084a425 /src/github.rs | |
parent | 8130bc32fa81821e5511500f2f64bd964c58f3db (diff) | |
download | reflectub-768b67c966e9a78864b450b6051974d096f1d412.tar.bz2 |
database: Add a way to get a single repo
Diffstat (limited to 'src/github.rs')
-rw-r--r-- | src/github.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/github.rs b/src/github.rs index ec00420..8c853da 100644 --- a/src/github.rs +++ b/src/github.rs @@ -11,13 +11,13 @@ const USER_AGENT: &'static str = concat!( #[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? + pub id: i64, + pub name: String, + pub description: Option<String>, + pub fork: bool, + pub git_url: String, + pub default_branch: String, + pub updated_at: String, // TODO: Maybe parse to date? } |