#![allow(unused_imports)]
use serde::{Deserialize, Serialize};
use super::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
pub struct PartCreateParams {
pub data: serde_json::Value,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
pub struct UploadPart {
pub id: String,
pub created_at: i64,
pub object: String,
pub upload_id: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
pub struct UploadCompleteParams {
pub part_ids: serde_json::Value,
#[serde(skip_serializing_if = "Option::is_none", default)]
pub md5: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
pub struct UploadCreateParams {
pub bytes: i64,
pub filename: String,
pub mime_type: String,
pub purpose: serde_json::Value,
#[serde(skip_serializing_if = "Option::is_none", default)]
pub expires_after: Option<ExpiresAfter>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
pub struct ExpiresAfter {
pub anchor: String,
pub seconds: i64,
}