pub enum BatchResult {
Succeeded {
message: Message,
},
Errored {
error: BatchError,
},
Canceled,
Expired,
}Available on crate feature
anthropic-client only.Expand description
The result of a single batch request.
Variants§
Succeeded
The request succeeded.
Errored
The request errored.
Fields
§
error: BatchErrorThe error details.
Canceled
The request was canceled.
Expired
The request expired.
Trait Implementations§
Source§impl Clone for BatchResult
impl Clone for BatchResult
Source§fn clone(&self) -> BatchResult
fn clone(&self) -> BatchResult
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 BatchResult
impl Debug for BatchResult
Source§impl<'de> Deserialize<'de> for BatchResult
impl<'de> Deserialize<'de> for BatchResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BatchResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BatchResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BatchResult
impl PartialEq for BatchResult
Source§fn eq(&self, other: &BatchResult) -> bool
fn eq(&self, other: &BatchResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BatchResult
impl Serialize for BatchResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BatchResult
Auto Trait Implementations§
impl Freeze for BatchResult
impl RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
impl UnwindSafe 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