openai_struct/models/
message_content_text_object_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#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct MessageContentTextObjectText {
16    #[serde(rename = "annotations")]
17    pub annotations: Vec<MessageContentTextObjectTextAnnotations>,
18    /// The data that makes up the text.
19    #[serde(rename = "value")]
20    pub value: String,
21}
22
23#[derive(Debug, Serialize, Deserialize)]
24#[serde(untagged)]
25pub enum MessageContentTextObjectTextAnnotations {
26    FileCitationObject(crate::MessageContentTextAnnotationsFileCitationObject),
27    FilePathObject(crate::MessageContentTextAnnotationsFilePathObject),
28}