Skip to main content

decode_decision_audit

Function decode_decision_audit 

Source
pub fn decode_decision_audit(
    config: &DecisionAuditConfig,
    paged: &PagedEvent,
) -> Result<AuditEntry, DecisionAuditDecodeError>
Expand description

Decodes a tenant-scoped Dovecote page item into a typed Gatekeep audit entry.

The storage tenant is checked against the payload tenant before the entry is returned. This check is essential for exports that combine pages from more than one tenant.

§Errors

Returns DecisionAuditDecodeError when the event shape, payload, or storage tenant does not match Gatekeep’s audit contract.