pub struct PersistentCachePolicy {
pub store_contract: StoreContract,
pub max_entry_bytes: u64,
pub max_scope_bytes: u64,
pub max_namespace_bytes: u64,
pub ttl_ms: u64,
pub on_store_failure: StoreFailurePolicy,
}Expand description
The persistent tier’s bounds and the host store’s declared terms (spec 044, 3.1 and 3.4).
Fields§
§store_contract: StoreContract§max_entry_bytes: u64§max_scope_bytes: u64§max_namespace_bytes: u64§ttl_ms: u64§on_store_failure: StoreFailurePolicyTrait Implementations§
Source§impl Clone for PersistentCachePolicy
impl Clone for PersistentCachePolicy
Source§impl Debug for PersistentCachePolicy
impl Debug for PersistentCachePolicy
Source§impl<'de> Deserialize<'de> for PersistentCachePolicy
impl<'de> Deserialize<'de> for PersistentCachePolicy
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 PersistentCachePolicy
Source§impl JsonSchema for PersistentCachePolicy
impl JsonSchema for PersistentCachePolicy
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 PartialEq for PersistentCachePolicy
impl PartialEq for PersistentCachePolicy
Source§impl Serialize for PersistentCachePolicy
impl Serialize for PersistentCachePolicy
impl StructuralPartialEq for PersistentCachePolicy
Auto Trait Implementations§
impl Freeze for PersistentCachePolicy
impl RefUnwindSafe for PersistentCachePolicy
impl Send for PersistentCachePolicy
impl Sync for PersistentCachePolicy
impl Unpin for PersistentCachePolicy
impl UnsafeUnpin for PersistentCachePolicy
impl UnwindSafe for PersistentCachePolicy
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