pub struct CachedEntry {
pub content: String,
pub cached_at: Instant,
pub token_count: usize,
pub use_count: u64,
}Expand description
Cached entry with metadata
Fields§
§content: StringCached content
cached_at: InstantWhen it was cached
token_count: usizeEstimated token count
use_count: u64Number of times used
Implementations§
Trait Implementations§
Source§impl Clone for CachedEntry
impl Clone for CachedEntry
Source§fn clone(&self) -> CachedEntry
fn clone(&self) -> CachedEntry
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 moreAuto Trait Implementations§
impl Freeze for CachedEntry
impl RefUnwindSafe for CachedEntry
impl Send for CachedEntry
impl Sync for CachedEntry
impl Unpin for CachedEntry
impl UnsafeUnpin for CachedEntry
impl UnwindSafe for CachedEntry
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