pub struct StorageAuditor { /* private fields */ }Expand description
Writes audit entries through the globally registered Storage.
Implementations§
Trait Implementations§
Source§impl Auditor for StorageAuditor
impl Auditor for StorageAuditor
Source§fn history<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
item_type: &'life1 str,
item_id: &'life2 str,
limit: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn history<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
item_type: &'life1 str,
item_id: &'life2 str,
limit: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Newest first, which for an append-only table is descending primary key —
stable even when two entries share a created_at timestamp.
fn record<'life0, 'async_trait>(
&'life0 self,
entry: AuditEntry,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for StorageAuditor
impl RefUnwindSafe for StorageAuditor
impl Send for StorageAuditor
impl Sync for StorageAuditor
impl Unpin for StorageAuditor
impl UnsafeUnpin for StorageAuditor
impl UnwindSafe for StorageAuditor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more