pub struct OpenAiFile {
    pub id: String,
    pub bytes: u64,
    pub created_at: u64,
    pub expires_at: Option<u64>,
    pub filename: String,
    pub purpose: OpenAiFilePurpose,
    pub status: OpenAiFileStatus,
    pub status_details: Option<String>,
}Expand description
The File object represents a document that has been uploaded to OpenAI.
Fields§
§id: StringThe file identifier, which can be referenced in the API endpoints.
bytes: u64The size of the file, in bytes.
created_at: u64The Unix timestamp (in seconds) for when the file was created.
expires_at: Option<u64>The Unix timestamp (in seconds) for when the file will expire.
filename: StringThe name of the file.
purpose: OpenAiFilePurposeThe intended purpose of the file. Supported values are assistants, assistants_output, batch, batch_output, fine-tune, fine-tune-results and vision.
status: OpenAiFileStatusDeprecated. The current status of the file, which can be either uploaded, processed, or error.
status_details: Option<String>Deprecated. For details on why a fine-tuning training file failed validation, see the error field on fine_tuning.job.
Implementations§
Source§impl OpenAiFile
 
impl OpenAiFile
Sourcepub fn builder() -> OpenAiFileBuilder<((), (), (), (), (), (), (), ())>
 
pub fn builder() -> OpenAiFileBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building OpenAiFile.
On the builder, call .id(...), .bytes(...), .created_at(...), .expires_at(...)(optional), .filename(...), .purpose(...), .status(...), .status_details(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of OpenAiFile.
Trait Implementations§
Source§impl Clone for OpenAiFile
 
impl Clone for OpenAiFile
Source§fn clone(&self) -> OpenAiFile
 
fn clone(&self) -> OpenAiFile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more