pub struct FileObject {
pub id: String,
pub bytes: u64,
pub created_at: u64,
pub filename: String,
pub object: String,
pub purpose: String,
}
Expand description
The File object represents a document that has been uploaded to the server.
Fields§
§id: String
The file identifier, which can be referenced in the API endpoints.
bytes: u64
The size of the file, in bytes.
created_at: u64
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: String
The intended purpose of the file. Supported values are fine-tune
, fine-tune-results
, assistants
, and assistants_output
.
Trait Implementations§
Source§impl Clone for FileObject
impl Clone for FileObject
Source§fn clone(&self) -> FileObject
fn clone(&self) -> FileObject
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 FileObject
impl Debug for FileObject
Source§impl Default for FileObject
impl Default for FileObject
Source§fn default() -> FileObject
fn default() -> FileObject
Returns the “default value” for a type. Read more
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