pub enum StoredCachePolicy {
Permanent,
QuickCache,
}Variants§
Permanent
No eviction on clean or write. Constrained only by overall storage limit or max_size
(if set). Will only be evicted if dependencies change and evict_on_dependency_change
is set.
QuickCache
uses the quick_cache library
Trait Implementations§
Source§impl Clone for StoredCachePolicy
impl Clone for StoredCachePolicy
Source§fn clone(&self) -> StoredCachePolicy
fn clone(&self) -> StoredCachePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for StoredCachePolicy
impl ComposeSchema for StoredCachePolicy
Source§impl Debug for StoredCachePolicy
impl Debug for StoredCachePolicy
Source§impl<'de> Deserialize<'de> for StoredCachePolicy
impl<'de> Deserialize<'de> for StoredCachePolicy
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
Source§impl JsonSchema for StoredCachePolicy
impl JsonSchema for StoredCachePolicy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for StoredCachePolicy
impl Serialize for StoredCachePolicy
Auto Trait Implementations§
impl Freeze for StoredCachePolicy
impl RefUnwindSafe for StoredCachePolicy
impl Send for StoredCachePolicy
impl Sync for StoredCachePolicy
impl Unpin for StoredCachePolicy
impl UnsafeUnpin for StoredCachePolicy
impl UnwindSafe for StoredCachePolicy
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