pub struct BatchErrorItem {
pub id: String,
pub custom_id: Option<String>,
pub response: Option<Value>,
pub error: BatchErrorDetails,
}Expand description
Batch error item - represents a failed request in OpenAI format.
Fields§
§id: StringRequest ID
custom_id: Option<String>Custom ID from the original request
response: Option<Value>Response (should be null for errors)
error: BatchErrorDetailsError details
Trait Implementations§
Source§impl Clone for BatchErrorItem
impl Clone for BatchErrorItem
Source§fn clone(&self) -> BatchErrorItem
fn clone(&self) -> BatchErrorItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchErrorItem
impl Debug for BatchErrorItem
Source§impl<'de> Deserialize<'de> for BatchErrorItem
impl<'de> Deserialize<'de> for BatchErrorItem
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 BatchErrorItem
impl RefUnwindSafe for BatchErrorItem
impl Send for BatchErrorItem
impl Sync for BatchErrorItem
impl Unpin for BatchErrorItem
impl UnsafeUnpin for BatchErrorItem
impl UnwindSafe for BatchErrorItem
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