pub struct Cached {
pub base: String,
pub revalidated_at: u64,
pub discovery: Discovery,
pub specs: BTreeMap<String, CachedSpec>,
}Expand description
A server’s cached surface.
The raw documents are stored rather than the reduced surface: the reduction is one build’s interpretation, and a newer build that reads more of the document would otherwise keep serving the older build’s reading of it until the entry expired.
Fields§
§base: StringThe server this was discovered from, so a hash collision cannot serve one server’s cassettes for another’s.
revalidated_at: u64When it was last revalidated, in seconds since the epoch.
discovery: DiscoveryThe discovery document.
specs: BTreeMap<String, CachedSpec>Each cassette’s document, keyed by cassette name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cached
impl<'de> Deserialize<'de> for Cached
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Cached
impl RefUnwindSafe for Cached
impl Send for Cached
impl Sync for Cached
impl Unpin for Cached
impl UnsafeUnpin for Cached
impl UnwindSafe for Cached
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