pub struct CreateUploadRequest {
pub filename: String,
pub purpose: String,
pub bytes: u64,
pub mime_type: Option<String>,
pub extra_body: Option<Map<String, Value>>,
}Expand description
Starts an upload session via POST /uploads.
Fields§
§filename: StringThe name of the file to upload.
purpose: StringThe intended purpose of the uploaded file. One of assistants,
batch, fine-tune, vision, or user_data.
bytes: u64The number of bytes in the file to be uploaded.
mime_type: Option<String>The MIME type of the file to be uploaded.
extra_body: Option<Map<String, Value>>Additional JSON properties flattened into the request body, for fields not covered by the typed struct.
Trait Implementations§
Source§impl Clone for CreateUploadRequest
impl Clone for CreateUploadRequest
Source§fn clone(&self) -> CreateUploadRequest
fn clone(&self) -> CreateUploadRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateUploadRequest
impl Debug for CreateUploadRequest
Source§impl Post for CreateUploadRequest
impl Post for CreateUploadRequest
Auto Trait Implementations§
impl Freeze for CreateUploadRequest
impl RefUnwindSafe for CreateUploadRequest
impl Send for CreateUploadRequest
impl Sync for CreateUploadRequest
impl Unpin for CreateUploadRequest
impl UnsafeUnpin for CreateUploadRequest
impl UnwindSafe for CreateUploadRequest
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