pub struct OnRateLimitEvent {
pub session_id: String,
pub limit_type: RateLimitType,
pub retry_after_ms: u64,
pub current_usage: String,
}Expand description
On-rate-limit event payload
Fields§
§session_id: String§limit_type: RateLimitTypeType of rate limit
retry_after_ms: u64Retry after milliseconds (suggested)
current_usage: StringCurrent usage information
Trait Implementations§
Source§impl Clone for OnRateLimitEvent
impl Clone for OnRateLimitEvent
Source§fn clone(&self) -> OnRateLimitEvent
fn clone(&self) -> OnRateLimitEvent
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 OnRateLimitEvent
impl Debug for OnRateLimitEvent
Source§impl<'de> Deserialize<'de> for OnRateLimitEvent
impl<'de> Deserialize<'de> for OnRateLimitEvent
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
Auto Trait Implementations§
impl Freeze for OnRateLimitEvent
impl RefUnwindSafe for OnRateLimitEvent
impl Send for OnRateLimitEvent
impl Sync for OnRateLimitEvent
impl Unpin for OnRateLimitEvent
impl UnsafeUnpin for OnRateLimitEvent
impl UnwindSafe for OnRateLimitEvent
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