pub fn record_event_once(
conn: &Connection,
action: &str,
provider: &str,
details: &str,
actor: Option<&str>,
) -> Result<bool, String>Expand description
Like record_event, but does nothing if an identical event (same action, subject and
details) is already in the chain. For a report that may arrive twice because its
acknowledgement was lost: the second delivery must not become a second audit row.
Returns whether a row was written.