openai/models/
create_translation_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 CreateTranslationResponse {
16    #[serde(rename = "text")]
17    pub text: String,
18}
19
20impl CreateTranslationResponse {
21    pub fn new(text: String) -> CreateTranslationResponse {
22        CreateTranslationResponse {
23            text,
24        }
25    }
26}
27
28