pub struct SessionEntry {
pub session_id: String,
pub session_key: String,
pub updated_at: String,
pub input_tokens: u64,
pub output_tokens: u64,
pub total_tokens: u64,
pub context_tokens: u64,
pub compaction_count: u32,
pub memory_flush_at: Option<String>,
pub memory_flush_compaction_count: Option<u32>,
pub extra: HashMap<String, Value>,
}Fields§
§session_id: String§session_key: String§updated_at: String§input_tokens: u64§output_tokens: u64§total_tokens: u64§context_tokens: u64§compaction_count: u32§memory_flush_at: Option<String>§memory_flush_compaction_count: Option<u32>§extra: HashMap<String, Value>Trait Implementations§
Source§impl Clone for SessionEntry
impl Clone for SessionEntry
Source§fn clone(&self) -> SessionEntry
fn clone(&self) -> SessionEntry
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 SessionEntry
impl Debug for SessionEntry
Source§impl<'de> Deserialize<'de> for SessionEntry
impl<'de> Deserialize<'de> for SessionEntry
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 SessionEntry
impl RefUnwindSafe for SessionEntry
impl Send for SessionEntry
impl Sync for SessionEntry
impl Unpin for SessionEntry
impl UnsafeUnpin for SessionEntry
impl UnwindSafe for SessionEntry
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