use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct FileUploadAuthorizationRequest {
pub filename: String,
pub filesize: u64,
pub md5: String,
pub mtime: u64,
pub content_type: Option<String>,
pub charset: Option<String>,
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct FileUploadAuthorizationResponse {
#[serde(default)]
pub exists: i32,
#[serde(default)]
pub upload_key: Option<String>,
#[serde(default)]
pub url: Option<String>,
#[serde(default)]
pub prefix: Option<String>,
#[serde(default)]
pub suffix: Option<String>,
}
#[derive(Clone, Debug)]
pub struct FileUploadResult {
pub already_exists: bool,
pub metadata: crate::responses::response_metadata::ResponseMetadata,
}