pub struct OptimizationRecord {Show 14 fields
pub mechanism: OptimizationMechanism,
pub key_schema_version: u32,
pub outcome: OptimizationOutcome,
pub entry_id: Option<String>,
pub batch_id: Option<String>,
pub batch_member: Option<u32>,
pub source_attempt_id: Option<String>,
pub age_ms: u64,
pub invalidation_generation: u64,
pub charge_owner: bool,
pub allocated_charge_units: u64,
pub shared_liability_units: u64,
pub diagnostics: Vec<String>,
pub shared: Option<SharedRecord>,
}Expand description
Per-logical-request runtime observations. Secret key material and cached content are deliberately absent.
Fields§
§mechanism: OptimizationMechanism§key_schema_version: u32§outcome: OptimizationOutcome§entry_id: Option<String>§batch_id: Option<String>§batch_member: Option<u32>§source_attempt_id: Option<String>The attempt that produced the supplied output. For a cache hit it is an attempt of an earlier decision, and the record has no attempt of its own; replay takes it as the output’s origin.
age_ms: u64§invalidation_generation: u64§charge_owner: bool§allocated_charge_units: u64§diagnostics: Vec<String>Every refusal or diagnostic, in the order observed, at most
MAX_OPTIMIZATION_DIAGNOSTICS.
This request’s part in a shared call (spec 044, 3.2.5).
Implementations§
Trait Implementations§
Source§impl Clone for OptimizationRecord
impl Clone for OptimizationRecord
Source§impl Debug for OptimizationRecord
impl Debug for OptimizationRecord
Source§impl<'de> Deserialize<'de> for OptimizationRecord
impl<'de> Deserialize<'de> for OptimizationRecord
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 OptimizationRecord
Source§impl JsonSchema for OptimizationRecord
impl JsonSchema for OptimizationRecord
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 OptimizationRecord
impl PartialEq for OptimizationRecord
Source§impl Serialize for OptimizationRecord
impl Serialize for OptimizationRecord
impl StructuralPartialEq for OptimizationRecord
Auto Trait Implementations§
impl Freeze for OptimizationRecord
impl RefUnwindSafe for OptimizationRecord
impl Send for OptimizationRecord
impl Sync for OptimizationRecord
impl Unpin for OptimizationRecord
impl UnsafeUnpin for OptimizationRecord
impl UnwindSafe for OptimizationRecord
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