pub enum KeyResolutionStrategy {
Embedded {
primary_field: FieldPath,
},
Lookup {
primary_field: FieldPath,
index_name: Option<String>,
},
Computed {
primary_field: FieldPath,
compute_partition: ComputeFunction,
},
TemporalLookup {
lookup_field: FieldPath,
timestamp_field: FieldPath,
index_name: String,
},
}Variants§
Embedded
Lookup
The event field holds a value a lookup index maps to the primary key.
Fields
index_name: Option<String>The lookup index this handler declares it resolves through (a
compiled index name, <field>_lookup_index). A declared lookup is
strict: it consults only this index, reached directly or after PDA
reverse lookups; a guarded write to the index’s field updates the
index only when the guard passes; and the handler is deduplicated
per route, so a second route of the same instruction to the same
row still applies. Without it the runtime infers the index and
falls back to every other lookup index of the entity.
Omitted when absent, so ASTs that do not declare one keep their bytes and hashes. Runtimes that predate it ignore the field (the strategy does not deny unknown fields) and resolve the lookup the undeclared way.