pub struct Served {
pub provider: usize,
pub key: CacheKey,
pub extracted: Extracted,
pub from_cache: bool,
}Expand description
A response, and which provider produced it.
key is that provider’s cache key - the caller stores under it, so the
entry is filed against the model that actually answered.
Fields§
§provider: usizeZero-based position in the chain.
key: CacheKeyThe cache key of the provider that answered.
extracted: ExtractedWhat came back.
from_cache: boolTrue when the cache answered and no request was made.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Served
impl RefUnwindSafe for Served
impl Send for Served
impl Sync for Served
impl Unpin for Served
impl UnsafeUnpin for Served
impl UnwindSafe for Served
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