pub struct StoredFile {
pub id: String,
pub object: Option<String>,
pub filename: Option<String>,
pub content_type: Option<String>,
pub bytes: Option<i64>,
pub created_at: Option<i64>,
pub status: Option<String>,
pub source: Option<String>,
pub purpose: Option<String>,
pub extra: Extra,
}Expand description
A stored-file handle in its OpenAI-style wire form
(api/v1/files.rs::WireStoredFile).
Fields§
§id: StringTEXT id, file_<hex>.
object: Option<String>§filename: Option<String>§content_type: Option<String>§bytes: Option<i64>Size in bytes.
created_at: Option<i64>UNIX epoch seconds.
status: Option<String>§source: Option<String>upload | api | workflow_output.
purpose: Option<String>§extra: ExtraTrait Implementations§
Source§impl Clone for StoredFile
impl Clone for StoredFile
Source§fn clone(&self) -> StoredFile
fn clone(&self) -> StoredFile
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 StoredFile
impl Debug for StoredFile
Source§impl Default for StoredFile
impl Default for StoredFile
Source§fn default() -> StoredFile
fn default() -> StoredFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StoredFilewhere
StoredFile: Default,
impl<'de> Deserialize<'de> for StoredFilewhere
StoredFile: Default,
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 StoredFile
impl RefUnwindSafe for StoredFile
impl Send for StoredFile
impl Sync for StoredFile
impl Unpin for StoredFile
impl UnsafeUnpin for StoredFile
impl UnwindSafe for StoredFile
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