Struct async_openai_wasm::types::CreateFileRequest
source · pub struct CreateFileRequest {
pub file: FileInput,
pub purpose: String,
}
Fields§
§file: FileInput
The file object to be uploaded.
If the purpose
is set to “fine-tune”, the file will be used for fine-tuning.
purpose: String
The intended purpose of the uploaded file.
Use “fine-tune” for fine-tuning. This allows us to validate the format of the uploaded file is correct for fine-tuning.
Trait Implementations§
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
source§fn eq(&self, other: &CreateFileRequest) -> bool
fn eq(&self, other: &CreateFileRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<CreateFileRequest> for Form
impl TryFrom<CreateFileRequest> for Form
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