pub struct UploadCreateParams {
pub bytes: i64,
pub filename: String,
pub mime_type: String,
pub purpose: String,
pub expires_after: Option<ExpiresAfter>,
}Expand description
Parameters for POST /uploads.
Fields§
§bytes: i64The total number of bytes that will be uploaded across all parts.
filename: StringThe name of the file to be uploaded.
mime_type: StringThe MIME type of the file, e.g. application/jsonl.
purpose: StringThe intended purpose, e.g. assistants, batch, fine-tune, vision,
user_data, or evals.
expires_after: Option<ExpiresAfter>Implementations§
Trait Implementations§
Source§impl Clone for UploadCreateParams
impl Clone for UploadCreateParams
Source§fn clone(&self) -> UploadCreateParams
fn clone(&self) -> UploadCreateParams
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 UploadCreateParams
impl Debug for UploadCreateParams
Auto Trait Implementations§
impl Freeze for UploadCreateParams
impl RefUnwindSafe for UploadCreateParams
impl Send for UploadCreateParams
impl Sync for UploadCreateParams
impl Unpin for UploadCreateParams
impl UnsafeUnpin for UploadCreateParams
impl UnwindSafe for UploadCreateParams
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