pub enum FilePurpose {
Assistants,
Batch,
FineTune,
Vision,
UserData,
Evals,
}
Expand description
The intended purpose of the uploaded file. One of: - assistants
: Used in the Assistants API - batch
: Used in the Batch API - fine-tune
: Used for fine-tuning - vision
: Images used for vision fine-tuning - user_data
: Flexible file type for any purpose - evals
: Used for eval data sets
Variants§
Trait Implementations§
Source§impl Clone for FilePurpose
impl Clone for FilePurpose
Source§fn clone(&self) -> FilePurpose
fn clone(&self) -> FilePurpose
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 FilePurpose
impl Debug for FilePurpose
Source§impl<'de> Deserialize<'de> for FilePurpose
impl<'de> Deserialize<'de> for FilePurpose
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 FilePurpose
impl PartialEq for FilePurpose
Source§impl Serialize for FilePurpose
impl Serialize for FilePurpose
impl Copy for FilePurpose
impl StructuralPartialEq for FilePurpose
Auto Trait Implementations§
impl Freeze for FilePurpose
impl RefUnwindSafe for FilePurpose
impl Send for FilePurpose
impl Sync for FilePurpose
impl Unpin for FilePurpose
impl UnwindSafe for FilePurpose
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