pub trait AuditLogger: Send + Sync {
// Required methods
fn log<'life0, 'async_trait>(
&'life0 self,
entry: AuditLogEntry,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query<'life0, 'async_trait>(
&'life0 self,
filter: AuditFilter,
) -> Pin<Box<dyn Future<Output = Result<Vec<AuditLogEntry>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Audit logger trait