Struct serenity::http::ratelimiting::RateLimit
[−]
[src]
pub struct RateLimit { pub limit: i64, pub remaining: i64, pub reset: i64, }
A set of data containing information about the ratelimits for a particular
Route
, which is stored in the ROUTES
mutex.
See the Discord docs on ratelimits for more information.
Note: You should not mutate any of the fields, as this can help cause 429s.
Fields
limit: i64
The total number of requests that can be made in a period of time.
remaining: i64
The number of requests remaining in the period of time.
reset: i64
Trait Implementations
impl Clone for RateLimit
[src]
fn clone(&self) -> RateLimit
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more