pub enum ResetTimeKind {
Seconds,
Timestamp,
ImfFixdate,
Iso8601,
}
Expand description
The kind of rate limit reset time
There are different ways to denote rate limits reset times. Some vendors use seconds, others use a timestamp format for example.
This enum lists all known variants.
Variants§
Seconds
Number of seconds until rate limit is lifted
Timestamp
Unix timestamp when rate limit will be lifted
ImfFixdate
RFC 2822 date when rate limit will be lifted
Iso8601
ISO 8601 date when rate limit will be lifted
Trait Implementations§
Source§impl Clone for ResetTimeKind
impl Clone for ResetTimeKind
Source§fn clone(&self) -> ResetTimeKind
fn clone(&self) -> ResetTimeKind
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResetTimeKind
impl Debug for ResetTimeKind
Source§impl PartialEq for ResetTimeKind
impl PartialEq for ResetTimeKind
impl Copy for ResetTimeKind
impl StructuralPartialEq for ResetTimeKind
Auto Trait Implementations§
impl Freeze for ResetTimeKind
impl RefUnwindSafe for ResetTimeKind
impl Send for ResetTimeKind
impl Sync for ResetTimeKind
impl Unpin for ResetTimeKind
impl UnwindSafe for ResetTimeKind
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