openai/models/create_transcription_response.rs
1/*
2 * OpenAI API
3 *
4 * APIs for sampling from and fine-tuning language models
5 *
6 * The version of the OpenAPI document: 1.2.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct CreateTranscriptionResponse {
16 #[serde(rename = "text")]
17 pub text: String,
18}
19
20impl CreateTranscriptionResponse {
21 pub fn new(text: String) -> CreateTranscriptionResponse {
22 CreateTranscriptionResponse {
23 text,
24 }
25 }
26}
27
28