pub struct Input {
pub file: String,
pub purpose: InputPurpose,
}Expand description
Uploads a JSONL file for batch processing. Each line in the uploaded file is validated before the file is stored. Uploaded files expire 30 days after creation.
Fields§
§file: StringThe JSONL batch input file to upload. Send as a multipart file field. Maximum size: 200 MB. Maximum content length: 50,000 JSONL lines.
purpose: InputPurposeThe purpose of the uploaded file. Must be batch.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
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
Source§impl IntoOperation for Input
impl IntoOperation for Input
Auto Trait Implementations§
impl Forget for Input
impl Freeze for Input
impl Move for Input
impl RefUnwindSafe for Input
impl Send for Inputwhere
RawVecInner: Send,
impl Sync for Inputwhere
RawVecInner: Sync,
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Inputwhere
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