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 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.
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DecisionCacheRecord
Source§impl JsonSchema for DecisionCacheRecord
impl JsonSchema for DecisionCacheRecord
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 DecisionCacheRecord
impl PartialEq for DecisionCacheRecord
Source§impl Serialize for DecisionCacheRecord
impl Serialize for DecisionCacheRecord
impl StructuralPartialEq for DecisionCacheRecord
Auto Trait Implementations§
impl Freeze for DecisionCacheRecord
impl RefUnwindSafe for DecisionCacheRecord
impl Send for DecisionCacheRecord
impl Sync for DecisionCacheRecord
impl Unpin for DecisionCacheRecord
impl UnsafeUnpin for DecisionCacheRecord
impl UnwindSafe for DecisionCacheRecord
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