openai_types/uploads/
_gen.rs1#![allow(unused_imports)]
5
6use serde::{Deserialize, Serialize};
7use super::*;
8
9#[derive(Debug, Clone, Serialize, Deserialize)]
10#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
11pub struct PartCreateParams {
12 pub data: serde_json::Value,
14}
15
16#[derive(Debug, Clone, Serialize, Deserialize)]
18#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
19pub struct UploadPart {
20 pub id: String,
22 pub created_at: i64,
24 pub object: String,
26 pub upload_id: String,
28}
29
30#[derive(Debug, Clone, Serialize, Deserialize)]
31#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
32pub struct UploadCompleteParams {
33 pub part_ids: serde_json::Value,
35 #[serde(skip_serializing_if = "Option::is_none", default)]
37 pub md5: Option<String>,
38}
39
40#[derive(Debug, Clone, Serialize, Deserialize)]
41#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
42pub struct UploadCreateParams {
43 pub bytes: i64,
45 pub filename: String,
47 pub mime_type: String,
49 pub purpose: serde_json::Value,
51 #[serde(skip_serializing_if = "Option::is_none", default)]
53 pub expires_after: Option<ExpiresAfter>,
54}
55
56#[derive(Debug, Clone, Serialize, Deserialize)]
58#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
59pub struct ExpiresAfter {
60 pub anchor: String,
62 pub seconds: i64,
64}