pub struct RateLimitWindowSchema {
pub limit: i32,
pub remaining: i32,
pub reset: String,
}Fields§
§limit: i32Maximum requests allowed in this window.
remaining: i32Remaining requests in the current window.
reset: StringUTC datetime when the window resets.
Implementations§
Trait Implementations§
Source§impl Clone for RateLimitWindowSchema
impl Clone for RateLimitWindowSchema
Source§fn clone(&self) -> RateLimitWindowSchema
fn clone(&self) -> RateLimitWindowSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RateLimitWindowSchema
impl Debug for RateLimitWindowSchema
Source§impl Default for RateLimitWindowSchema
impl Default for RateLimitWindowSchema
Source§fn default() -> RateLimitWindowSchema
fn default() -> RateLimitWindowSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RateLimitWindowSchema
impl<'de> Deserialize<'de> for RateLimitWindowSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RateLimitWindowSchema
impl PartialEq for RateLimitWindowSchema
Source§fn eq(&self, other: &RateLimitWindowSchema) -> bool
fn eq(&self, other: &RateLimitWindowSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RateLimitWindowSchema
impl Serialize for RateLimitWindowSchema
impl StructuralPartialEq for RateLimitWindowSchema
Auto Trait Implementations§
impl Freeze for RateLimitWindowSchema
impl RefUnwindSafe for RateLimitWindowSchema
impl Send for RateLimitWindowSchema
impl Sync for RateLimitWindowSchema
impl Unpin for RateLimitWindowSchema
impl UnsafeUnpin for RateLimitWindowSchema
impl UnwindSafe for RateLimitWindowSchema
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