openai_struct/models/upload.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 Upload : The Upload object can accept byte chunks in the form of Parts.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct Upload {
18 /// The intended number of bytes to be uploaded.
19 #[serde(rename = "bytes")]
20 pub bytes: i32,
21 /// The Unix timestamp (in seconds) for when the Upload was created.
22 #[serde(rename = "created_at")]
23 pub created_at: i32,
24 /// The Unix timestamp (in seconds) for when the Upload will expire.
25 #[serde(rename = "expires_at")]
26 pub expires_at: i32,
27 #[serde(rename = "file")]
28 pub file: Option<crate::models::CreateRunRequestToolChoice>,
29 /// The name of the file to be uploaded.
30 #[serde(rename = "filename")]
31 pub filename: String,
32 /// The Upload unique identifier, which can be referenced in API endpoints.
33 #[serde(rename = "id")]
34 pub id: String,
35 /// The object type, which is always \"upload\".
36 #[serde(rename = "object")]
37 pub object: Option<String>,
38 /// The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values.
39 #[serde(rename = "purpose")]
40 pub purpose: String,
41 /// The status of the Upload.
42 #[serde(rename = "status")]
43 pub status: String,
44}