pub struct CachedLLMResult {
pub result: LLMResult,
pub cached_at: Instant,
}Expand description
缓存的 LLM 结果,包含过期时间
Fields§
§result: LLMResultLLM 返回结果
cached_at: Instant缓存时间戳
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