pub struct FileObject {
pub id: String,
pub filename: String,
pub bytes: u64,
pub created_at: u64,
pub purpose: String,
pub status: String,
pub mime_type: Option<String>,
pub metadata: HashMap<String, Value>,
}Expand description
File object metadata
Fields§
§id: StringFile ID
filename: StringOriginal filename
bytes: u64File size in bytes
created_at: u64Creation timestamp
purpose: StringFile purpose
status: StringFile status
mime_type: Option<String>MIME type
metadata: HashMap<String, Value>Additional metadata
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileObject
impl RefUnwindSafe for FileObject
impl Send for FileObject
impl Sync for FileObject
impl Unpin for FileObject
impl UnsafeUnpin 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