#[non_exhaustive]pub enum HeaderName {
Bucket,
Global,
Limit,
Remaining,
ResetAfter,
Reset,
RetryAfter,
Scope,
}
Expand description
Typed name of a header.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bucket
Information about the ratelimit bucket.
Global
Global header.
Limit
Maximum requests allotted in the bucket.
Remaining
Remaining requested allotted.
ResetAfter
How long until the bucket is reset.
Reset
When the bucket resets.
RetryAfter
How long until a request can be tried again.
Scope
Scope of a ratelimit.
Implementations§
source§impl HeaderName
impl HeaderName
sourcepub const REMAINING: &'static str = "x-ratelimit-remaining"
pub const REMAINING: &'static str = "x-ratelimit-remaining"
Lowercased name for the remaining header.
sourcepub const RESET_AFTER: &'static str = "x-ratelimit-reset-after"
pub const RESET_AFTER: &'static str = "x-ratelimit-reset-after"
Lowercased name for the reset-after header.
sourcepub const RETRY_AFTER: &'static str = "retry-after"
pub const RETRY_AFTER: &'static str = "retry-after"
Lowercased name for the retry-after header.
Trait Implementations§
source§impl Clone for HeaderName
impl Clone for HeaderName
source§fn clone(&self) -> HeaderName
fn clone(&self) -> HeaderName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HeaderName
impl Debug for HeaderName
source§impl Display for HeaderName
impl Display for HeaderName
source§impl PartialEq for HeaderName
impl PartialEq for HeaderName
impl Copy for HeaderName
impl Eq for HeaderName
impl StructuralPartialEq for HeaderName
Auto Trait Implementations§
impl Freeze for HeaderName
impl RefUnwindSafe for HeaderName
impl Send for HeaderName
impl Sync for HeaderName
impl Unpin for HeaderName
impl UnwindSafe for HeaderName
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)