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: i32The intended number of bytes to be uploaded.
created_at: i32The Unix timestamp (in seconds) for when the Upload was created.
expires_at: i32The Unix timestamp (in seconds) for when the Upload will expire.
file: Option<CreateRunRequestToolChoice>§filename: StringThe name of the file to be uploaded.
id: StringThe Upload unique identifier, which can be referenced in API endpoints.
object: Option<String>The object type, which is always "upload".
purpose: StringThe intended purpose of the file. Please refer here for acceptable values.
status: StringThe 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