pub struct MessagesError {
pub error: MessagesErrorError,
pub type_: MessagesErrorType,
}Expand description
An error response in the Anthropic error format.
JSON schema
{
"description": "An error response in the Anthropic error format.\n",
"type": "object",
"required": [
"error",
"type"
],
"properties": {
"error": {
"description": "The error details.",
"type": "object",
"required": [
"message",
"type"
],
"properties": {
"message": {
"description": "A human-readable error message.",
"type": "string"
},
"type": {
"description": "The error type (e.g. `invalid_request_error`, `api_error`).",
"type": "string"
}
}
},
"type": {
"description": "Always `error`.",
"type": "string",
"enum": [
"error"
]
}
}
}Fields§
§error: MessagesErrorError§type_: MessagesErrorTypeAlways error.
Trait Implementations§
Source§impl Clone for MessagesError
impl Clone for MessagesError
Source§fn clone(&self) -> MessagesError
fn clone(&self) -> MessagesError
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 MessagesError
impl Debug for MessagesError
Source§impl<'de> Deserialize<'de> for MessagesError
impl<'de> Deserialize<'de> for MessagesError
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 MessagesError
impl RefUnwindSafe for MessagesError
impl Send for MessagesError
impl Sync for MessagesError
impl Unpin for MessagesError
impl UnsafeUnpin for MessagesError
impl UnwindSafe for MessagesError
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