pub struct SessionEndEvent {
pub session_id: String,
pub total_tokens: i32,
pub total_tool_calls: i32,
pub duration_ms: u64,
}Expand description
Session end event payload
Fields§
§session_id: StringSession ID
total_tokens: i32Total token usage
total_tool_calls: i32Total tool calls
duration_ms: u64Session duration in milliseconds
Trait Implementations§
Source§impl Clone for SessionEndEvent
impl Clone for SessionEndEvent
Source§fn clone(&self) -> SessionEndEvent
fn clone(&self) -> SessionEndEvent
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 SessionEndEvent
impl Debug for SessionEndEvent
Source§impl<'de> Deserialize<'de> for SessionEndEvent
impl<'de> Deserialize<'de> for SessionEndEvent
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 SessionEndEvent
impl RefUnwindSafe for SessionEndEvent
impl Send for SessionEndEvent
impl Sync for SessionEndEvent
impl Unpin for SessionEndEvent
impl UnsafeUnpin for SessionEndEvent
impl UnwindSafe for SessionEndEvent
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