openai_struct/models/upload_part.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 UploadPart : The upload Part represents a chunk of bytes we can add to an Upload object.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct UploadPart {
18 /// The Unix timestamp (in seconds) for when the Part was created.
19 #[serde(rename = "created_at")]
20 pub created_at: i32,
21 /// The upload Part unique identifier, which can be referenced in API endpoints.
22 #[serde(rename = "id")]
23 pub id: String,
24 /// The object type, which is always `upload.part`.
25 #[serde(rename = "object")]
26 pub object: String,
27 /// The ID of the Upload object that this Part was added to.
28 #[serde(rename = "upload_id")]
29 pub upload_id: String,
30}