pub struct CreateUploadRequest {
pub bytes: i32,
pub filename: String,
pub mime_type: String,
pub purpose: String,
}
Fields§
§bytes: i32
The number of bytes in the file you are uploading.
filename: String
The name of the file to upload.
mime_type: String
The MIME type of the file. This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.
purpose: String
The intended purpose of the uploaded file. See the documentation on File purposes.
Trait Implementations§
Source§impl Debug for CreateUploadRequest
impl Debug for CreateUploadRequest
Source§impl<'de> Deserialize<'de> for CreateUploadRequest
impl<'de> Deserialize<'de> for CreateUploadRequest
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 CreateUploadRequest
impl RefUnwindSafe for CreateUploadRequest
impl Send for CreateUploadRequest
impl Sync for CreateUploadRequest
impl Unpin 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