aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2021-05-30 19:18:34 +0200
committerTeddy Wing2021-05-30 19:18:34 +0200
commita340db978034715823eaadd005d2627815aed4ea (patch)
tree36ba39b506358115c0318900f883dfb6e1b387eb /src
parent0b267b242f32b1fd411c1bd4a8fcedf14e71cf6f (diff)
downloadreflectub-a340db978034715823eaadd005d2627815aed4ea.tar.bz2
github::fetch_repos(): Add documentation
Diffstat (limited to 'src')
-rw-r--r--src/github.rs1
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()?);