openai_struct/models/chat_completion_request_message_content_part_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 ChatCompletionRequestMessageContentPartText : Learn about [text inputs](/docs/guides/text-generation).
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openapi.yaml
17///
18/// ```yaml
19/// ChatCompletionRequestMessageContentPartText:
20/// type: object
21/// title: Text content part
22/// description: |
23/// Learn about [text inputs](/docs/guides/text-generation).
24/// properties:
25/// type:
26/// type: string
27/// enum:
28/// - text
29/// description: The type of the content part.
30/// x-stainless-const: true
31/// text:
32/// type: string
33/// description: The text content.
34/// required:
35/// - type
36/// - text
37/// ```
38#[derive(Debug, Serialize, Deserialize, PartialEq)]
39pub struct ChatCompletionRequestMessageContentPartText {
40 /// The text content.
41 #[serde(rename = "text")]
42 pub text: String,
43 /// The type of the content part.
44 #[serde(rename = "type")]
45 pub _type: String,
46}