Skip to main content

check_rate_limit

Function check_rate_limit 

Source
pub async fn check_rate_limit(client: &Octocrab) -> Result<RateLimitStatus>
Expand description

Checks the GitHub API rate limit status.

Uses the authenticated Octocrab client to fetch the current rate limit information from the GitHub API.

§Arguments

  • client - Authenticated Octocrab client

§Returns

RateLimitStatus with current rate limit information

§Errors

Returns an error if the API request fails.