pub struct ResponseErrorEvent {
pub code: String,
pub message: String,
pub param: String,
pub sequence_number: i64,
pub type_: ResponseErrorEventType,
}Expand description
Emitted when an error occurs.
JSON schema
{
"description": "Emitted when an error occurs.",
"type": "object",
"required": [
"code",
"message",
"param",
"sequence_number",
"type"
],
"properties": {
"code": {
"anyOf": [
{
"description": "The error code.\n",
"type": "string"
}
]
},
"message": {
"description": "The error message.\n",
"type": "string"
},
"param": {
"anyOf": [
{
"description": "The error parameter.\n",
"type": "string"
}
]
},
"sequence_number": {
"description": "The sequence number of this event.",
"type": "integer"
},
"type": {
"description": "The type of the event. Always `error`.\n",
"type": "string",
"enum": [
"error"
],
"x-stainless-const": true
}
},
"x-oaiMeta": {
"group": "responses",
"name": "error"
}
}Fields§
§code: String§message: StringThe error message.
param: String§sequence_number: i64The sequence number of this event.
type_: ResponseErrorEventTypeThe type of the event. Always error.
Trait Implementations§
Source§impl Clone for ResponseErrorEvent
impl Clone for ResponseErrorEvent
Source§fn clone(&self) -> ResponseErrorEvent
fn clone(&self) -> ResponseErrorEvent
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 ResponseErrorEvent
impl Debug for ResponseErrorEvent
Source§impl<'de> Deserialize<'de> for ResponseErrorEvent
impl<'de> Deserialize<'de> for ResponseErrorEvent
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
Source§impl From<ResponseErrorEvent> for ResponseStreamEvent
impl From<ResponseErrorEvent> for ResponseStreamEvent
Source§fn from(value: ResponseErrorEvent) -> Self
fn from(value: ResponseErrorEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseErrorEvent
impl RefUnwindSafe for ResponseErrorEvent
impl Send for ResponseErrorEvent
impl Sync for ResponseErrorEvent
impl Unpin for ResponseErrorEvent
impl UnsafeUnpin for ResponseErrorEvent
impl UnwindSafe for ResponseErrorEvent
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