pub struct Upload {
pub bytes: i32,
pub created_at: i32,
pub expires_at: i32,
pub file: Option<CreateRunRequestToolChoice>,
pub filename: String,
pub id: String,
pub object: Option<String>,
pub purpose: String,
pub status: String,
}
Fields§
§bytes: i32
The intended number of bytes to be uploaded.
created_at: i32
The Unix timestamp (in seconds) for when the Upload was created.
expires_at: i32
The Unix timestamp (in seconds) for when the Upload will expire.
file: Option<CreateRunRequestToolChoice>
§filename: String
The name of the file to be uploaded.
id: String
The Upload unique identifier, which can be referenced in API endpoints.
object: Option<String>
The object type, which is always "upload".
purpose: String
The intended purpose of the file. Please refer here for acceptable values.
status: String
The status of the Upload.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Upload
impl<'de> Deserialize<'de> for Upload
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 Upload
impl RefUnwindSafe for Upload
impl Send for Upload
impl Sync for Upload
impl Unpin for Upload
impl UnwindSafe for Upload
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