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§fn clone(&self) -> SessionShutdown
fn clone(&self) -> SessionShutdown
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 SessionShutdown
impl Debug for SessionShutdown
Source§impl Default for SessionShutdown
impl Default for SessionShutdown
Source§fn default() -> SessionShutdown
fn default() -> SessionShutdown
Returns the “default value” for a type. Read more
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