pub struct RateLimitInfo {
pub status: RateLimitStatus,
pub resets_at: Option<u64>,
pub rate_limit_type: Option<RateLimitWindow>,
pub utilization: Option<f64>,
pub overage_status: Option<OverageStatus>,
pub overage_disabled_reason: Option<OverageDisabledReason>,
pub is_using_overage: bool,
}Expand description
Rate limit status information.
Fields§
§status: RateLimitStatusCurrent rate limit status
resets_at: Option<u64>Unix timestamp when the rate limit resets
rate_limit_type: Option<RateLimitWindow>Type of rate limit window
utilization: Option<f64>Utilization of the rate limit (0.0 to 1.0)
overage_status: Option<OverageStatus>Overage status (e.g., rejected, allowed)
overage_disabled_reason: Option<OverageDisabledReason>Reason overage is disabled, if applicable
is_using_overage: boolWhether overage billing is active
Trait Implementations§
Source§impl Clone for RateLimitInfo
impl Clone for RateLimitInfo
Source§fn clone(&self) -> RateLimitInfo
fn clone(&self) -> RateLimitInfo
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 RateLimitInfo
impl Debug for RateLimitInfo
Source§impl<'de> Deserialize<'de> for RateLimitInfo
impl<'de> Deserialize<'de> for RateLimitInfo
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 RateLimitInfo
impl RefUnwindSafe for RateLimitInfo
impl Send for RateLimitInfo
impl Sync for RateLimitInfo
impl Unpin for RateLimitInfo
impl UnsafeUnpin for RateLimitInfo
impl UnwindSafe for RateLimitInfo
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