pub struct CachedLLMResult {
pub result: LLMResult,
pub cached_at: Instant,
}Expand description
Cached LLM result, with its expiry time
Fields§
§result: LLMResultThe LLM result
cached_at: InstantWhen it was cached
Trait Implementations§
Source§impl Clone for CachedLLMResult
impl Clone for CachedLLMResult
Source§fn clone(&self) -> CachedLLMResult
fn clone(&self) -> CachedLLMResult
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 CachedLLMResult
impl RefUnwindSafe for CachedLLMResult
impl Send for CachedLLMResult
impl Sync for CachedLLMResult
impl Unpin for CachedLLMResult
impl UnsafeUnpin for CachedLLMResult
impl UnwindSafe for CachedLLMResult
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