pub struct DecisionCacheRecord {
pub outcome: DecisionCacheOutcome,
pub entry_id: Option<String>,
pub source_run_record: Option<ContentDigest>,
pub age_ms: Option<u64>,
pub generations: Option<EntryGenerations>,
pub reused: Vec<u32>,
pub refreshed: Vec<u32>,
pub mismatched: Vec<u32>,
pub substituted: Vec<SubstitutedInput>,
pub on_refresh_failure: Option<RefreshFailurePolicy>,
pub abandoned: Option<AbandonedRun>,
pub diagnostics: Vec<String>,
}Expand description
The decision-result cache’s part in one decision, a rustev.run/3
member (spec 044, 3.6.6). Request indices are positions in the run
record’s requests.
Fields§
§outcome: DecisionCacheOutcome§entry_id: Option<String>The entry served from; absent unless hit or refreshed.
source_run_record: Option<ContentDigest>The digest of the run record of the decision that wrote the entry.
age_ms: Option<u64>By evaluation time, as for a persistent entry.
generations: Option<EntryGenerations>The store’s generations, for an entry of the persistent tier.
reused: Vec<u32>Requests supplied from the entry.
refreshed: Vec<u32>Requests inside the refresh closure, dispatched again.
mismatched: Vec<u32>Requests outside the closure dispatched for closure_mismatch.
substituted: Vec<SubstitutedInput>Volatile inputs supplied from the entry under
serve_cached_within_freshness.
on_refresh_failure: Option<RefreshFailurePolicy>The policy applied, present when a refresh failed.
abandoned: Option<AbandonedRun>The served run abandoned under recompute (3.6.5); never supplied
to the core or to replay.
diagnostics: Vec<String>At most MAX_OPTIMIZATION_DIAGNOSTICS, as a request’s record.
Trait Implementations§
Source§impl Clone for DecisionCacheRecord
impl Clone for DecisionCacheRecord
Source§impl Debug for DecisionCacheRecord
impl Debug for DecisionCacheRecord
Source§impl<'de> Deserialize<'de> for DecisionCacheRecord
impl<'de> Deserialize<'de> for DecisionCacheRecord
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>,
Source§impl JsonSchema for DecisionCacheRecord
impl JsonSchema for DecisionCacheRecord
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more