openai_struct/models/
create_translation_response_verbose_json.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 CreateTranslationResponseVerboseJson {
16    /// The duration of the input audio.
17    #[serde(rename = "duration")]
18    pub duration: f32,
19    /// The language of the output translation (always `english`).
20    #[serde(rename = "language")]
21    pub language: String,
22    /// Segments of the translated text and their corresponding details.
23    #[serde(rename = "segments")]
24    pub segments: Option<Vec<crate::models::TranscriptionSegment>>,
25    /// The translated text.
26    #[serde(rename = "text")]
27    pub text: String,
28}