pub struct WebFetchCacheSettingsLayer {
pub ttl_seconds: Option<u64>,
pub max_entries: Option<usize>,
pub max_total_bytes: Option<usize>,
pub max_entry_bytes: Option<usize>,
}Expand description
Sparse normalized-result cache overlay.
Fields§
§ttl_seconds: Option<u64>Cache lifetime override in whole seconds.
max_entries: Option<usize>Maximum entry-count override.
max_total_bytes: Option<usize>Maximum aggregate-byte override.
max_entry_bytes: Option<usize>Maximum per-entry byte override.
Trait Implementations§
Source§impl Clone for WebFetchCacheSettingsLayer
impl Clone for WebFetchCacheSettingsLayer
Source§impl Debug for WebFetchCacheSettingsLayer
impl Debug for WebFetchCacheSettingsLayer
Source§impl Default for WebFetchCacheSettingsLayer
impl Default for WebFetchCacheSettingsLayer
Source§impl<'de> Deserialize<'de> for WebFetchCacheSettingsLayer
impl<'de> Deserialize<'de> for WebFetchCacheSettingsLayer
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
impl Eq for WebFetchCacheSettingsLayer
impl StructuralPartialEq for WebFetchCacheSettingsLayer
Auto Trait Implementations§
impl Freeze for WebFetchCacheSettingsLayer
impl RefUnwindSafe for WebFetchCacheSettingsLayer
impl Send for WebFetchCacheSettingsLayer
impl Sync for WebFetchCacheSettingsLayer
impl Unpin for WebFetchCacheSettingsLayer
impl UnsafeUnpin for WebFetchCacheSettingsLayer
impl UnwindSafe for WebFetchCacheSettingsLayer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.