openai-struct 0.0.4

利用openai的openapi生成的rust结构体
Documentation
/*
 * OpenAI API
 *
 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
 *
 * OpenAPI spec pub version: 2.3.0
 *
 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
 */

/// pub MessageDeltaContentTextAnnotationsFilePathObject : A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.

#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct MessageDeltaContentTextAnnotationsFilePathObject {
    #[serde(rename = "end_index")]
    pub end_index: Option<i32>,
    #[serde(rename = "file_path")]
    pub file_path: Option<crate::models::MessageDeltaContentTextAnnotationsFilePathObjectFilePath>,
    /// The index of the annotation in the text content part.
    #[serde(rename = "index")]
    pub index: i32,
    #[serde(rename = "start_index")]
    pub start_index: Option<i32>,
    /// The text in the message content that needs to be replaced.
    #[serde(rename = "text")]
    pub text: Option<String>,
    /// Always `file_path`.
    #[serde(rename = "type")]
    pub _type: String,
}