pub enum BatchOperationError {
Request(Error),
Submission {
input_file_id: String,
idempotency_key: String,
source: Error,
},
WaitTimeout {
batch_id: String,
last_batch: Option<Box<Batch>>,
},
NotReady {
batch: Box<Batch>,
},
ResultLine {
file_id: String,
line: usize,
source: Error,
},
}Expand description
Typed failures of the opt-in workflow helpers. Debug/Display omit documents, bodies and keys.
Variants§
Request(Error)
Ordinary request/transport failure, with its original details explicitly available.
Submission
Upload succeeded but creation did not return a usable batch. Creation may have succeeded remotely. Resume using this file id and the same key; never automatically delete the uploaded input.
Fields
WaitTimeout
The entire wait budget elapsed; no server cancellation was requested.
Fields
NotReady
Results require a terminal batch. Inspect this state or explicitly call wait.
ResultLine
One downloaded JSONL record did not match the result contract.
Trait Implementations§
Source§impl Debug for BatchOperationError
impl Debug for BatchOperationError
Source§impl Display for BatchOperationError
impl Display for BatchOperationError
Source§impl Error for BatchOperationError
impl Error for BatchOperationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for BatchOperationError
impl !UnwindSafe for BatchOperationError
impl Freeze for BatchOperationError
impl Send for BatchOperationError
impl Sync for BatchOperationError
impl Unpin for BatchOperationError
impl UnsafeUnpin for BatchOperationError
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