pub fn validate_event_fields<P>(
event: &Event<P>,
extra_fields: &[&str],
) -> Result<()>Expand description
Enforces the closed event object (Section 5.1): the event may carry only
the six Agent Identity fields plus extra_fields the protocol defines.