pub struct RateLimits {
pub credits: Option<Value>,
pub limit_id: String,
pub limit_name: Option<String>,
pub plan_type: String,
pub primary: Option<RateLimitWindow>,
pub secondary: Option<RateLimitWindow>,
pub rate_limit_reached_type: Option<String>,
}Expand description
Rate-limit envelope sent in AccountRateLimitsUpdatedNotification.
Fields§
§credits: Option<Value>Credit balance, if applicable for this plan. Shape is plan-dependent so the payload is preserved as raw JSON.
limit_id: StringStable machine identifier for the limit (e.g. "codex").
limit_name: Option<String>Human-readable label, if the server provides one.
plan_type: StringPlan tier (e.g. "free", "plus", "team").
primary: Option<RateLimitWindow>Primary (short-term) rate-limit window, if active.
secondary: Option<RateLimitWindow>Secondary (longer-term) rate-limit window, if active.
rate_limit_reached_type: Option<String>Which window (if any) the account has already hit.
Trait Implementations§
Source§impl Clone for RateLimits
impl Clone for RateLimits
Source§fn clone(&self) -> RateLimits
fn clone(&self) -> RateLimits
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 RateLimits
impl Debug for RateLimits
Source§impl<'de> Deserialize<'de> for RateLimits
impl<'de> Deserialize<'de> for RateLimits
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 RateLimits
impl RefUnwindSafe for RateLimits
impl Send for RateLimits
impl Sync for RateLimits
impl Unpin for RateLimits
impl UnsafeUnpin for RateLimits
impl UnwindSafe for RateLimits
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