pub struct CacheEntry {
pub identity: String,
pub body: String,
pub fetched_at: i64,
pub expires_at: i64,
}Expand description
One stored response, as a backend keeps it.
Fields§
§identity: StringCacheKey::identity of the request; a mismatch on read is a miss.
body: StringThe raw response, serialized JSON.
fetched_at: i64§expires_at: i64Trait Implementations§
Source§impl Clone for CacheEntry
impl Clone for CacheEntry
Source§impl Debug for CacheEntry
impl Debug for CacheEntry
impl Eq for CacheEntry
Source§impl PartialEq for CacheEntry
impl PartialEq for CacheEntry
impl StructuralPartialEq for CacheEntry
Auto Trait Implementations§
impl Forget for CacheEntry
impl Freeze for CacheEntry
impl RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnsafeUnpin for CacheEntry
impl UnwindSafe for CacheEntry
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