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

The total number of requests that can be made in a period of time.

The number of requests remaining in the period of time.

When the interval resets and the the limit resets to the value of remaining.

Trait Implementations

impl Clone for RateLimit
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for RateLimit
[src]

[src]

Formats the value using the given formatter.

impl Default for RateLimit
[src]

[src]

Returns the "default value" for a type. Read more