Function fetch_repos

Source
pub async fn fetch_repos(
    language: Option<&str>,
    spoken_lang_code: Option<&str>,
    since: Option<&str>,
) -> Result<Vec<Repository>, Box<dyn Error>>
Expand description

Fetch trending repositories on GitHub

§Arguments

  • language - the programming language to filter by. eg: python
  • spoken_language_code - the spoken language, eg: en for english
  • since - one of the ["daily", "weekly", "monthly"]. Defaults to “daily”

§Returns

  • Result<Vec<Repository>, Box<dyn Error>> - the list of all trending repositories fetched or error if fetching fails.