pub struct FileObject {
pub id: String,
pub object: String,
pub bytes: u64,
pub created_at: i64,
pub filename: String,
pub purpose: String,
pub status: Option<String>,
pub status_details: Option<String>,
}Expand description
Response from uploading a file.
Fields§
§id: StringThe file identifier.
object: StringThe object type (always “file”).
bytes: u64The size of the file in bytes.
created_at: i64The Unix timestamp (in seconds) for when the file was created.
filename: StringThe name of the file.
purpose: StringThe intended purpose of the file.
status: Option<String>Deprecated. The current status of the file (always “processed”).
status_details: Option<String>Deprecated. For details on why a fine-tuning training file failed validation.
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
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