pub struct Output {
pub bytes: Option<i64>,
pub created_at: Option<i64>,
pub error: Option<OutputError>,
pub expires_at: Option<i64>,
pub filename: Option<String>,
pub id: Option<String>,
pub object: Option<OutputObject>,
pub purpose: Option<OutputPurpose>,
}Expand description
Response structure for successful file upload and documented error responses.
Fields§
§bytes: Option<i64>Size of the uploaded file in bytes.
created_at: Option<i64>Unix timestamp, in seconds, when the file was created.
error: Option<OutputError>§expires_at: Option<i64>Unix timestamp, in seconds, when the file expires.
filename: Option<String>Original filename of the uploaded file.
id: Option<String>Unique identifier for the stored file.
object: Option<OutputObject>Object type. Always file.
purpose: Option<OutputPurpose>File purpose. Values include batch for uploaded batch input files and batch_output for output and error files.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
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 Forget for Output
impl Freeze for Output
impl Move for Output
impl RefUnwindSafe for Output
impl Send for Outputwhere
RawVecInner: Send,
impl Sync for Outputwhere
RawVecInner: Sync,
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Outputwhere
RawVecInner: UnwindSafe,
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