pub struct SessionStopEvent {
pub session_id: String,
pub success: bool,
pub result: Option<String>,
pub error: Option<String>,
pub timestamp: DateTime<Utc>,
pub usage: Usage,
}Expand description
Event emitted when a session stops.
Fields§
§session_id: String§success: bool§result: Option<String>§error: Option<String>§timestamp: DateTime<Utc>§usage: UsageTrait Implementations§
Source§impl AgentEvent for SessionStopEvent
impl AgentEvent for SessionStopEvent
Source§fn to_jsonrpc(&self) -> JsonRpcNotification
fn to_jsonrpc(&self) -> JsonRpcNotification
Convert this event into a
JsonRpcNotification.Source§fn session_id(&self) -> String
fn session_id(&self) -> String
Return the session ID associated with this event.
Source§impl Clone for SessionStopEvent
impl Clone for SessionStopEvent
Source§fn clone(&self) -> SessionStopEvent
fn clone(&self) -> SessionStopEvent
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 SessionStopEvent
impl Debug for SessionStopEvent
Source§impl<'de> Deserialize<'de> for SessionStopEvent
impl<'de> Deserialize<'de> for SessionStopEvent
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 SessionStopEvent
impl RefUnwindSafe for SessionStopEvent
impl Send for SessionStopEvent
impl Sync for SessionStopEvent
impl Unpin for SessionStopEvent
impl UnsafeUnpin for SessionStopEvent
impl UnwindSafe for SessionStopEvent
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