openai_struct/models/
usage_audio_transcriptions_result.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 UsageAudioTranscriptionsResult : The aggregated audio transcriptions usage details of the specific time bucket.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct UsageAudioTranscriptionsResult {
18    /// When `group_by=api_key_id`, this field provides the API key ID of the grouped usage result.
19    #[serde(rename = "api_key_id")]
20    pub api_key_id: Option<String>,
21    /// When `group_by=model`, this field provides the model name of the grouped usage result.
22    #[serde(rename = "model")]
23    pub model: Option<String>,
24    /// The count of requests made to the model.
25    #[serde(rename = "num_model_requests")]
26    pub num_model_requests: i32,
27    #[serde(rename = "object")]
28    pub object: String,
29    /// When `group_by=project_id`, this field provides the project ID of the grouped usage result.
30    #[serde(rename = "project_id")]
31    pub project_id: Option<String>,
32    /// The number of seconds processed.
33    #[serde(rename = "seconds")]
34    pub seconds: i32,
35    /// When `group_by=user_id`, this field provides the user ID of the grouped usage result.
36    #[serde(rename = "user_id")]
37    pub user_id: Option<String>,
38}