Skip to main content

primary_key_from_snapshot

Function primary_key_from_snapshot 

Source
pub fn primary_key_from_snapshot(
    snapshot: &Value,
    primary_key_column: &str,
) -> Value
Expand description

Extract the primary-key field from a serialized model snapshot. Used to stamp audit events with a stable identifier even when the schema doesn’t surface the PK column verbatim in the response.