pub struct SsrFetchCache {
pub data: BTreeMap<SsrFetchRequest, SsrFetchResponse>,
}Fields§
§data: BTreeMap<SsrFetchRequest, SsrFetchResponse>Implementations§
Source§impl SsrFetchCache
impl SsrFetchCache
pub fn new(data: &BTreeMap<SsrFetchRequest, SsrFetchResponse>) -> SsrFetchCache
pub fn empty() -> SsrFetchCache
pub fn get(&self, request: &SsrFetchRequest) -> Option<&SsrFetchResponse>
Trait Implementations§
Source§impl Clone for SsrFetchCache
impl Clone for SsrFetchCache
Source§fn clone(&self) -> SsrFetchCache
fn clone(&self) -> SsrFetchCache
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SsrFetchCache
impl Debug for SsrFetchCache
Source§impl Default for SsrFetchCache
impl Default for SsrFetchCache
Source§fn default() -> SsrFetchCache
fn default() -> SsrFetchCache
Returns the “default value” for a type. Read more
Source§impl Hash for SsrFetchCache
impl Hash for SsrFetchCache
Source§impl JsJsonDeserialize for SsrFetchCache
impl JsJsonDeserialize for SsrFetchCache
fn from_json( context: JsJsonContext, json: JsJson, ) -> Result<Self, JsJsonContext>
Source§impl JsJsonSerialize for SsrFetchCache
impl JsJsonSerialize for SsrFetchCache
Auto Trait Implementations§
impl Freeze for SsrFetchCache
impl RefUnwindSafe for SsrFetchCache
impl Send for SsrFetchCache
impl Sync for SsrFetchCache
impl Unpin for SsrFetchCache
impl UnwindSafe for SsrFetchCache
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