openai-struct 0.0.4

利用openai的openapi生成的rust结构体
Documentation
/*
 * OpenAI API
 *
 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
 *
 * OpenAPI spec pub version: 2.3.0
 *
 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
 */

/// pub RealtimeResponseUsageInputTokenDetails : Details about the input tokens used in the Response.

#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct RealtimeResponseUsageInputTokenDetails {
    /// The number of audio tokens used in the Response.
    #[serde(rename = "audio_tokens")]
    pub audio_tokens: Option<i32>,
    /// The number of cached tokens used in the Response.
    #[serde(rename = "cached_tokens")]
    pub cached_tokens: Option<i32>,
    /// The number of text tokens used in the Response.
    #[serde(rename = "text_tokens")]
    pub text_tokens: Option<i32>,
}