pub struct OpenAIFile {
pub id: String,
pub bytes: i64,
pub created_at: i64,
pub expires_at: i64,
pub filename: String,
pub object: String,
pub purpose: String,
pub status: String,
pub status_details: 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: i64The Unix timestamp (in seconds) for when the file will expire.
filename: StringThe name of the file.
object: StringThe object type, which is always file.
purpose: StringThe intended purpose of the file.
status: StringDeprecated.
status_details: StringDeprecated.
Trait Implementations§
Source§impl Clone for OpenAIFile
impl Clone for OpenAIFile
Source§fn clone(&self) -> OpenAIFile
fn clone(&self) -> OpenAIFile
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 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