pub struct OpenAIFile {
pub id: String,
pub bytes: i64,
pub created_at: i64,
pub expires_at: Option<i64>,
pub filename: String,
pub object: String,
pub purpose: String,
pub status: String,
pub status_details: Option<String>,
}
Expand description
The File
object represents a document that has been uploaded to OpenAI.
Fields§
§id: String
The file identifier, which can be referenced in the API endpoints.
bytes: i64
The size of the file, in bytes.
created_at: i64
The 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: String
The name of the file.
object: String
The object type, which is always file
.
purpose: String
The intended purpose of the file.
status: String
Deprecated.
status_details: Option<String>
Deprecated.
Trait Implementations§
Source§impl Clone for OpenAIFile
impl Clone for OpenAIFile
Source§fn clone(&self) -> OpenAIFile
fn clone(&self) -> OpenAIFile
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 OpenAIFile
impl Debug for OpenAIFile
Source§impl Default for OpenAIFile
impl Default for OpenAIFile
Source§fn default() -> OpenAIFile
fn default() -> OpenAIFile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenAIFile
impl RefUnwindSafe for OpenAIFile
impl Send for OpenAIFile
impl Sync for OpenAIFile
impl Unpin for OpenAIFile
impl UnwindSafe for OpenAIFile
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