pub struct Upload {
pub id: String,
pub created_at: u32,
pub filename: String,
pub bytes: u64,
pub purpose: UploadPurpose,
pub status: UploadStatus,
pub expires_at: u32,
pub object: String,
pub file: Option<OpenAIFile>,
}
Expand description
The Upload object can accept byte chunks in the form of Parts.
Fields§
§id: String
The Upload unique identifier, which can be referenced in API endpoints
created_at: u32
The Unix timestamp (in seconds) for when the Upload was created
filename: String
The name of the file to be uploaded
bytes: u64
The intended number of bytes to be uploaded
purpose: UploadPurpose
The intended purpose of the file. [Pelase refer here](Please refer here for acceptable values.)
status: UploadStatus
The status of the Upload.
expires_at: u32
The Unix timestamp (in seconds) for when the Upload was created
object: String
The object type, which is always “upload”
file: Option<OpenAIFile>
The ready File object after the Upload is completed
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Upload
impl<'de> Deserialize<'de> for Upload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Upload
impl RefUnwindSafe for Upload
impl Send for Upload
impl Sync for Upload
impl Unpin for Upload
impl UnwindSafe for Upload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more