pub struct OnErrorEvent {
pub session_id: String,
pub error_type: ErrorType,
pub error_message: String,
pub context: Value,
}Expand description
On-error event payload
Fields§
§session_id: StringSession ID
error_type: ErrorTypeError classification
error_message: StringError message
context: ValueAdditional context (e.g., tool name, model name)
Trait Implementations§
Source§impl Clone for OnErrorEvent
impl Clone for OnErrorEvent
Source§fn clone(&self) -> OnErrorEvent
fn clone(&self) -> OnErrorEvent
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 OnErrorEvent
impl Debug for OnErrorEvent
Source§impl<'de> Deserialize<'de> for OnErrorEvent
impl<'de> Deserialize<'de> for OnErrorEvent
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 OnErrorEvent
impl RefUnwindSafe for OnErrorEvent
impl Send for OnErrorEvent
impl Sync for OnErrorEvent
impl Unpin for OnErrorEvent
impl UnsafeUnpin for OnErrorEvent
impl UnwindSafe for OnErrorEvent
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