pub struct FileObject {
pub id: String,
pub bytes: usize,
pub created_at: usize,
pub filename: String,
pub object: String,
pub purpose: FilePurpose,
pub status: Option<FileStatus>,
pub expires_at: Option<usize>,
pub status_details: Option<String>,
}
Fields§
§id: String
The file identifier, which can be referenced in the API endpoints.
bytes: usize
The size of the file, in bytes.
created_at: usize
The Unix timestamp (in seconds) for when the file was created.
filename: String
The name of the file.
object: String
The object type, which is always file
.
purpose: FilePurpose
The intended purpose of the file.
Supported values are assistants
, assistants_output
, batch
, batch_output
,
fine-tune
, fine-tune-results
, vision
, and user_data
.
status: Option<FileStatus>
Deprecated. The current status of the file, which can be either uploaded
,
processed
, or error
.
expires_at: Option<usize>
The Unix timestamp (in seconds) for when the file will expire.
status_details: Option<String>
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 FileObject
impl Clone for FileObject
Source§fn clone(&self) -> FileObject
fn clone(&self) -> FileObject
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 FileObject
impl Debug for FileObject
Source§impl<'de> Deserialize<'de> for FileObject
impl<'de> Deserialize<'de> for FileObject
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 FromStr for FileObject
impl FromStr for FileObject
Source§impl PartialEq for FileObject
impl PartialEq for FileObject
impl Eq for FileObject
impl StructuralPartialEq for FileObject
Auto Trait Implementations§
impl Freeze for FileObject
impl RefUnwindSafe for FileObject
impl Send for FileObject
impl Sync for FileObject
impl Unpin for FileObject
impl UnwindSafe for FileObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.