pub struct Upload {
pub id: String,
pub created_at: Option<u64>,
pub filename: String,
pub purpose: String,
pub bytes: u64,
pub status: UploadStatus,
pub file_id: Option<String>,
pub expires_at: Option<u64>,
pub object: Option<String>,
}Expand description
An upload session.
Fields§
§id: StringThe upload ID, e.g. upload_....
created_at: Option<u64>Unix timestamp (seconds) of when the upload was created.
filename: StringThe name of the file being uploaded.
purpose: StringThe intended purpose of the uploaded file, e.g. batch.
bytes: u64The size of the file being uploaded, in bytes.
status: UploadStatusThe current status.
file_id: Option<String>The ready FileObject ID once the
upload is completed.
expires_at: Option<u64>Unix timestamp (seconds) of when the upload expires.
object: Option<String>The object type, always upload.
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 UnsafeUnpin 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