#[non_exhaustive]pub enum FilePurpose {
Assistants,
AssistantsOutput,
Batch,
BatchOutput,
FineTune,
FineTuneResults,
Vision,
UserData,
Other(String),
}Expand description
The intended purpose of an uploaded file.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Assistants
AssistantsOutput
Batch
BatchOutput
FineTune
FineTuneResults
Vision
UserData
Other(String)
Catch-all for unknown purposes (forward compatibility).
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 (const: unstable) · 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
impl Eq for FilePurpose
Source§impl PartialEq for FilePurpose
impl PartialEq for FilePurpose
Source§impl Serialize for FilePurpose
impl Serialize 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 UnsafeUnpin 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