openai_struct/models/response_format_text.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 ResponseFormatText : Default response format. Used to generate text responses.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openapi.yaml
17///
18/// ```yaml
19/// ResponseFormatText:
20/// type: object
21/// title: Text
22/// description: |
23/// Default response format. Used to generate text responses.
24/// properties:
25/// type:
26/// type: string
27/// description: The type of response format being defined. Always `text`.
28/// enum:
29/// - text
30/// x-stainless-const: true
31/// required:
32/// - type
33/// ```
34#[derive(Debug, Serialize, Deserialize)]
35#[serde(rename_all = "lowercase")]
36pub enum ResponseFormatText {
37 Text,
38}
39
40#[test]
41fn test_test() {
42 assert_eq!(
43 serde_json::to_string(&ResponseFormatText::Text).unwrap(),
44 "\"text\""
45 );
46}