pub struct Upload {
pub id: String,
pub created_at: i64,
pub filename: String,
pub bytes: i64,
pub purpose: String,
pub status: String,
pub expires_at: i64,
pub object: String,
pub file: Upload_File,
}Expand description
The Upload object can accept byte chunks in the form of Parts.
Fields§
§id: StringThe Upload unique identifier, which can be referenced in API endpoints.
created_at: i64The Unix timestamp (in seconds) for when the Upload was created.
filename: StringThe name of the file to be uploaded.
bytes: i64The intended number of bytes to be uploaded.
purpose: StringThe intended purpose of the file.
status: StringThe status of the Upload.
expires_at: i64The Unix timestamp (in seconds) for when the Upload will expire.
object: StringThe object type, which is always “upload”.
file: Upload_FileTrait Implementations§
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