pub struct OpenAIFile {
pub id: String,
pub object: String,
pub bytes: u32,
pub created_at: u32,
pub filename: String,
pub purpose: OpenAIFilePurpose,
pub status: Option<String>,
pub status_details: Option<String>,
}
Expand description
The File
object represents a document that has been uploaded to OpenAI.
Fields§
§id: String
The file identifier, which can be referenced in the API endpoints.
object: String
The object type, which is always “file”.
bytes: u32
The size of the file in bytes.
created_at: u32
The Unix timestamp (in seconds) for when the file was created.
filename: String
The name of the file.
purpose: OpenAIFilePurpose
The intended purpose of the file. Supported values are assistants
, assistants_output
, batch
, batch_output
, fine-tune
, fine-tune-results
and vision
.
status: Option<String>
👎Deprecated
Deprecated. The current status of the file, which can be either uploaded
, processed
, or error
.
status_details: Option<String>
👎Deprecated
Deprecated. For details on why a fine-tuning training file failed validation, see the error
field on fine_tuning.job
.
Trait Implementations§
Source§impl Clone for OpenAIFile
impl Clone for OpenAIFile
Source§fn clone(&self) -> OpenAIFile
fn clone(&self) -> OpenAIFile
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 OpenAIFile
impl Debug for OpenAIFile
Source§impl<'de> Deserialize<'de> for OpenAIFile
impl<'de> Deserialize<'de> for OpenAIFile
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 OpenAIFile
impl PartialEq for OpenAIFile
Source§impl Serialize for OpenAIFile
impl Serialize for OpenAIFile
impl StructuralPartialEq for OpenAIFile
Auto Trait Implementations§
impl Freeze for OpenAIFile
impl RefUnwindSafe for OpenAIFile
impl Send for OpenAIFile
impl Sync for OpenAIFile
impl Unpin for OpenAIFile
impl UnwindSafe for OpenAIFile
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