diff options
author | Teddy Wing | 2021-05-30 19:18:34 +0200 |
---|---|---|
committer | Teddy Wing | 2021-05-30 19:18:34 +0200 |
commit | a340db978034715823eaadd005d2627815aed4ea (patch) | |
tree | 36ba39b506358115c0318900f883dfb6e1b387eb /src/github.rs | |
parent | 0b267b242f32b1fd411c1bd4a8fcedf14e71cf6f (diff) | |
download | reflectub-a340db978034715823eaadd005d2627815aed4ea.tar.bz2 |
github::fetch_repos(): Add documentation
Diffstat (limited to 'src/github.rs')
-rw-r--r-- | src/github.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/github.rs b/src/github.rs index f5598ba..0f4de77 100644 --- a/src/github.rs +++ b/src/github.rs @@ -41,6 +41,7 @@ impl Repo { } +/// Fetch all GitHub repositories for the given user. pub async fn fetch_repos() -> Result<Vec<Repo>, Error> { let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Accept", "application/vnd.github.v3+json".parse()?); |