pub struct CreateFileRequest {
pub file: FileInput,
pub purpose: FilePurpose,
}
Fields§
§file: FileInput
The File object (not file name) to be uploaded.
purpose: FilePurpose
The intended purpose of the uploaded file.
Use “assistants” for Assistants and Message files, “vision” for Assistants image file inputs, “batch” for Batch API, and “fine-tune” for Fine-tuning.
Trait Implementations§
Source§impl AsyncTryFrom<CreateFileRequest> for Form
impl AsyncTryFrom<CreateFileRequest> for Form
Source§type Error = OpenAIError
type Error = OpenAIError
The type returned in the event of a conversion error.
Source§impl Clone for CreateFileRequest
impl Clone for CreateFileRequest
Source§fn clone(&self) -> CreateFileRequest
fn clone(&self) -> CreateFileRequest
Returns a copy of the value. Read more
1.0.0 · 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 CreateFileRequest
impl Debug for CreateFileRequest
Source§impl Default for CreateFileRequest
impl Default for CreateFileRequest
Source§fn default() -> CreateFileRequest
fn default() -> CreateFileRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateFileRequest
impl PartialEq for CreateFileRequest
impl StructuralPartialEq for CreateFileRequest
Auto Trait Implementations§
impl !Freeze for CreateFileRequest
impl RefUnwindSafe for CreateFileRequest
impl Send for CreateFileRequest
impl Sync for CreateFileRequest
impl Unpin for CreateFileRequest
impl UnwindSafe for CreateFileRequest
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