async_openai/types/realtime/
rate_limit.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Serialize, Deserialize, Clone)]
4pub struct RateLimit {
5    /// The name of the rate limit ("requests", "tokens", "input_tokens", "output_tokens").
6    pub name: String,
7    /// The maximum allowed value for the rate limit.
8    pub limit: u32,
9    /// The remaining value before the limit is reached.
10    pub remaining: u32,
11    /// Seconds until the rate limit resets.
12    pub reset_seconds: f32,
13}