pub struct OpenAiFile {
pub id: String,
pub bytes: i64,
pub created_at: i64,
pub expires_at: Option<i64>,
pub filename: String,
pub purpose: Purpose,
pub status: Status,
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: i64The size of the file, in bytes.
created_at: i64The Unix timestamp (in seconds) for when the file was created.
expires_at: Option<i64>The Unix timestamp (in seconds) for when the file will expire.
filename: StringThe name of the file.
purpose: PurposeThe intended purpose of the file. Supported values are assistants, assistants_output, batch, batch_output, fine-tune, fine-tune-results, vision, and user_data.
status: StatusDeprecated. 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