pub struct SessionShutdown {
pub model: Option<String>,
pub input_tokens: Option<u32>,
pub output_tokens: Option<u32>,
pub cache_read_tokens: Option<u32>,
pub cache_write_tokens: Option<u32>,
pub total_tokens: Option<u32>,
}Expand description
session.shutdown — carries per-session token/model metrics.
Fields§
§model: Option<String>§input_tokens: Option<u32>§output_tokens: Option<u32>§cache_read_tokens: Option<u32>§cache_write_tokens: Option<u32>§total_tokens: Option<u32>Trait Implementations§
Source§impl Clone for SessionShutdown
impl Clone for SessionShutdown
Source§impl Debug for SessionShutdown
impl Debug for SessionShutdown
Auto Trait Implementations§
impl Freeze for SessionShutdown
impl RefUnwindSafe for SessionShutdown
impl Send for SessionShutdown
impl Sync for SessionShutdown
impl Unpin for SessionShutdown
impl UnsafeUnpin for SessionShutdown
impl UnwindSafe for SessionShutdown
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