pub struct ScopeHistory {
pub scope_id: ScopeId,
pub interaction_count: i32,
pub total_tokens: i64,
pub total_cost: f64,
pub commits: Vec<MemoryCommit>,
}Expand description
History of a scope’s interactions.
Fields§
§scope_id: ScopeIdScope ID
interaction_count: i32Number of interactions in this scope
total_tokens: i64Total tokens used in this scope
total_cost: f64Total cost for this scope
commits: Vec<MemoryCommit>All commits in this scope
Trait Implementations§
Source§impl Clone for ScopeHistory
impl Clone for ScopeHistory
Source§fn clone(&self) -> ScopeHistory
fn clone(&self) -> ScopeHistory
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 ScopeHistory
impl Debug for ScopeHistory
Source§impl<'de> Deserialize<'de> for ScopeHistory
impl<'de> Deserialize<'de> for ScopeHistory
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
Source§impl PartialEq for ScopeHistory
impl PartialEq for ScopeHistory
Source§impl Serialize for ScopeHistory
impl Serialize for ScopeHistory
impl StructuralPartialEq for ScopeHistory
Auto Trait Implementations§
impl Freeze for ScopeHistory
impl RefUnwindSafe for ScopeHistory
impl Send for ScopeHistory
impl Sync for ScopeHistory
impl Unpin for ScopeHistory
impl UnwindSafe for ScopeHistory
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