pub struct ApiErrorObject {
pub type: Option<String>,
pub message: String,
pub request_id: Option<String>,
pub code: Option<String>,
pub status_code: Option<u16>,
}Expand description
API error object from Anthropic
Fields§
§type: Option<String>Error type (e.g., “invalid_request_error”, “rate_limit_error”)
message: StringHuman-readable error message
request_id: Option<String>Request ID for debugging
code: Option<String>Error code
status_code: Option<u16>HTTP status code (not serialized, used for retry logic)
Trait Implementations§
Source§impl Clone for ApiErrorObject
impl Clone for ApiErrorObject
Source§fn clone(&self) -> ApiErrorObject
fn clone(&self) -> ApiErrorObject
Returns a duplicate of the value. Read more
1.0.0 · 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 ApiErrorObject
impl Debug for ApiErrorObject
Source§impl<'de> Deserialize<'de> for ApiErrorObject
impl<'de> Deserialize<'de> for ApiErrorObject
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 ApiErrorObject
impl RefUnwindSafe for ApiErrorObject
impl Send for ApiErrorObject
impl Sync for ApiErrorObject
impl Unpin for ApiErrorObject
impl UnwindSafe for ApiErrorObject
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