[][src]Function rustgtrending::fetch::fetch_repos

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

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.