pub struct DecisionCachePolicy {
pub tiers: Vec<DecisionCacheTier>,
pub max_entry_bytes: u64,
pub max_entries: Option<u64>,
pub ttl_ms: u64,
pub volatile: Vec<String>,
pub key_dimensions: Vec<String>,
pub on_refresh_failure: RefreshFailurePolicy,
}Expand description
The decision-result cache’s tiers, bounds and declared sources (spec 044, 3.1 and 3.6).
Fields§
§tiers: Vec<DecisionCacheTier>In lookup order, memory before persistent (3.3). The persistent tier
is the store persistent_cache declares.
max_entry_bytes: u64§max_entries: Option<u64>Entries of the memory tier; present exactly when it is a tier.
ttl_ms: u64§volatile: Vec<String>Input names, and step:<id> for an acquisition step, refreshed on
every hit (3.6.2).
key_dimensions: Vec<String>Upstream-origin dimensions the host supplies as scope handles (3.5).
on_refresh_failure: RefreshFailurePolicyOmitted means unresolved (3.6.5); always written.
Trait Implementations§
Source§impl Clone for DecisionCachePolicy
impl Clone for DecisionCachePolicy
Source§impl Debug for DecisionCachePolicy
impl Debug for DecisionCachePolicy
Source§impl<'de> Deserialize<'de> for DecisionCachePolicy
impl<'de> Deserialize<'de> for DecisionCachePolicy
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 DecisionCachePolicy
Source§impl JsonSchema for DecisionCachePolicy
impl JsonSchema for DecisionCachePolicy
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 DecisionCachePolicy
impl PartialEq for DecisionCachePolicy
Source§impl Serialize for DecisionCachePolicy
impl Serialize for DecisionCachePolicy
impl StructuralPartialEq for DecisionCachePolicy
Auto Trait Implementations§
impl Freeze for DecisionCachePolicy
impl RefUnwindSafe for DecisionCachePolicy
impl Send for DecisionCachePolicy
impl Sync for DecisionCachePolicy
impl Unpin for DecisionCachePolicy
impl UnsafeUnpin for DecisionCachePolicy
impl UnwindSafe for DecisionCachePolicy
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