pub struct FileObject {
pub id: String,
pub object: Option<String>,
pub bytes: Option<i64>,
pub created_at: Option<i64>,
pub filename: Option<String>,
pub purpose: Option<String>,
pub status: Option<String>,
pub deleted: Option<bool>,
}Expand description
A file stored on the upstream provider. v1 targets the batch purpose
(JSONL input + output files). Mirrors the OpenAI file shape; the gateway
forwards file traffic verbatim.
Fields§
§id: StringProvider-issued file id.
object: Option<String>Object type (usually "file").
bytes: Option<i64>File size in bytes.
created_at: Option<i64>Unix creation timestamp.
filename: Option<String>Original filename.
purpose: Option<String>Upload purpose (e.g. "batch").
status: Option<String>Processing status.
deleted: Option<bool>Present (and true) on a delete response.
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 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 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