openai_struct/models/
realtime_server_event_rate_limits_updated.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/// pub RealtimeServerEventRateLimitsUpdated : Emitted at the beginning of a Response to indicate the updated rate limits.  When a Response is created some tokens will be \"reserved\" for the output  tokens, the rate limits shown here reflect that reservation, which is then  adjusted accordingly once the Response is completed.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct RealtimeServerEventRateLimitsUpdated {
18    /// The unique ID of the server event.
19    #[serde(rename = "event_id")]
20    pub event_id: String,
21    /// List of rate limit information.
22    #[serde(rename = "rate_limits")]
23    pub rate_limits: Vec<crate::models::RealtimeServerEventRateLimitsUpdatedRateLimits>,
24    /// The event type, must be `rate_limits.updated`.
25    #[serde(rename = "type")]
26    pub _type: String,
27}