pub enum UploadPurpose {
Assistants,
Vision,
Batch,
FineTune,
}
Expand description
The intended purpose of the uploaded file.
Variants§
Assistants
For use with Assistants and Message files
Vision
For Assistants image file inputs
Batch
For use with the Batch API
FineTune
For use with Fine-tuning
Trait Implementations§
Source§impl Clone for UploadPurpose
impl Clone for UploadPurpose
Source§fn clone(&self) -> UploadPurpose
fn clone(&self) -> UploadPurpose
Returns a duplicate 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 UploadPurpose
impl Debug for UploadPurpose
Source§impl Default for UploadPurpose
impl Default for UploadPurpose
Source§fn default() -> UploadPurpose
fn default() -> UploadPurpose
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UploadPurpose
impl<'de> Deserialize<'de> for UploadPurpose
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
Source§impl PartialEq for UploadPurpose
impl PartialEq for UploadPurpose
Source§impl Serialize for UploadPurpose
impl Serialize for UploadPurpose
impl StructuralPartialEq for UploadPurpose
Auto Trait Implementations§
impl Freeze for UploadPurpose
impl RefUnwindSafe for UploadPurpose
impl Send for UploadPurpose
impl Sync for UploadPurpose
impl Unpin for UploadPurpose
impl UnwindSafe for UploadPurpose
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