Struct octorust::rate_limit::RateLimit
source · pub struct RateLimit {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl RateLimit
impl RateLimit
sourcepub async fn get(&self) -> Result<Response<RateLimitOverview>, ClientError>
pub async fn get(&self) -> Result<Response<RateLimitOverview>, ClientError>
Get rate limit status for the authenticated user.
This function performs a GET
to the /rate_limit
endpoint.
Note: Accessing this endpoint does not count against your REST API rate limit.
Note: The rate
object is deprecated. If you’re writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
FROM: https://docs.github.com/rest/reference/rate-limit#get-rate-limit-status-for-the-authenticated-user
Auto Trait Implementations§
impl !RefUnwindSafe for RateLimit
impl Send for RateLimit
impl Sync for RateLimit
impl Unpin for RateLimit
impl !UnwindSafe for RateLimit
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more