pub struct ContextMemoryFile {
pub path: String,
pub file_type: String,
pub tokens: u64,
}Expand description
A memory file’s token contribution, in ContextUsage::memory_files.
Fields§
§path: String§file_type: StringDisplay label of the memory-file source, e.g. "Project" or "User".
tokens: u64Trait Implementations§
Source§impl Clone for ContextMemoryFile
impl Clone for ContextMemoryFile
Source§fn clone(&self) -> ContextMemoryFile
fn clone(&self) -> ContextMemoryFile
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 ContextMemoryFile
impl Debug for ContextMemoryFile
Source§impl<'de> Deserialize<'de> for ContextMemoryFile
impl<'de> Deserialize<'de> for ContextMemoryFile
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 ContextMemoryFile
impl PartialEq for ContextMemoryFile
Source§impl Serialize for ContextMemoryFile
impl Serialize for ContextMemoryFile
impl StructuralPartialEq for ContextMemoryFile
Auto Trait Implementations§
impl Freeze for ContextMemoryFile
impl RefUnwindSafe for ContextMemoryFile
impl Send for ContextMemoryFile
impl Sync for ContextMemoryFile
impl Unpin for ContextMemoryFile
impl UnsafeUnpin for ContextMemoryFile
impl UnwindSafe for ContextMemoryFile
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