Struct rate_limits::RateLimitVariant
source · [−]pub struct RateLimitVariant {
pub vendor: Vendor,
pub duration: Option<Duration>,
pub limit_header: Option<String>,
pub used_header: Option<String>,
pub remaining_header: String,
pub reset_header: String,
pub reset_kind: ResetTimeKind,
}Expand description
A variant defines all relevant fields for parsing headers from a given vendor
Fields
vendor: Vendorduration: Option<Duration>limit_header: Option<String>used_header: Option<String>remaining_header: Stringreset_header: Stringreset_kind: ResetTimeKindImplementations
Trait Implementations
sourceimpl Clone for RateLimitVariant
impl Clone for RateLimitVariant
sourcefn clone(&self) -> RateLimitVariant
fn clone(&self) -> RateLimitVariant
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RateLimitVariant
impl Debug for RateLimitVariant
sourceimpl PartialEq<RateLimitVariant> for RateLimitVariant
impl PartialEq<RateLimitVariant> for RateLimitVariant
sourcefn eq(&self, other: &RateLimitVariant) -> bool
fn eq(&self, other: &RateLimitVariant) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RateLimitVariant) -> bool
fn ne(&self, other: &RateLimitVariant) -> bool
This method tests for !=.
impl StructuralPartialEq for RateLimitVariant
Auto Trait Implementations
impl RefUnwindSafe for RateLimitVariant
impl Send for RateLimitVariant
impl Sync for RateLimitVariant
impl Unpin for RateLimitVariant
impl UnwindSafe for RateLimitVariant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more