openai_struct/models/
realtime_server_event_rate_limits_updated_rate_limits.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct RealtimeServerEventRateLimitsUpdatedRateLimits {
16    /// The maximum allowed value for the rate limit.
17    #[serde(rename = "limit")]
18    pub limit: Option<i32>,
19    /// The name of the rate limit (`requests`, `tokens`).
20    #[serde(rename = "name")]
21    pub name: Option<String>,
22    /// The remaining value before the limit is reached.
23    #[serde(rename = "remaining")]
24    pub remaining: Option<i32>,
25    /// Seconds until the rate limit resets.
26    #[serde(rename = "reset_seconds")]
27    pub reset_seconds: Option<f32>,
28}