pub struct RateLimitNotification {
pub limit_type: RateLimitType,
pub current_count: u64,
pub max_count: u64,
pub window_seconds: u64,
pub reset_in_seconds: u64,
}Expand description
Rate limit notification
Fields§
§limit_type: RateLimitTypeRate limit type
current_count: u64Current request count
max_count: u64Maximum allowed requests
window_seconds: u64Time window in seconds
reset_in_seconds: u64Time until reset in seconds
Trait Implementations§
Source§impl Clone for RateLimitNotification
impl Clone for RateLimitNotification
Source§fn clone(&self) -> RateLimitNotification
fn clone(&self) -> RateLimitNotification
Returns a duplicate 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 RateLimitNotification
impl Debug for RateLimitNotification
Source§impl Default for RateLimitNotification
impl Default for RateLimitNotification
Source§fn default() -> RateLimitNotification
fn default() -> RateLimitNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RateLimitNotification
impl<'de> Deserialize<'de> for RateLimitNotification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RateLimitNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RateLimitNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RateLimitNotification
impl Serialize for RateLimitNotification
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RateLimitNotification
impl RefUnwindSafe for RateLimitNotification
impl Send for RateLimitNotification
impl Sync for RateLimitNotification
impl Unpin for RateLimitNotification
impl UnwindSafe for RateLimitNotification
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