pub struct BatchResult {
pub custom_id: String,
pub result: Result<LLMResult, BatchError>,
}Expand description
Result for a single request in a completed batch.
Not Serialize/Deserialize: the per-request error is the typed
BatchError, which does not carry a JSON round-trip contract. Parsing
of the provider JSONL response happens on the internal *ResultLine types
in this module; BatchResult is built programmatically.
Fields§
§custom_id: StringMatches the custom_id from the original BatchRequest.
result: Result<LLMResult, BatchError>The LLM response on success, or a typed error on failure.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BatchResult
impl !UnwindSafe for BatchResult
impl Freeze for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
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