pub struct AuditStore { /* private fields */ }Implementations§
Source§impl AuditStore
impl AuditStore
pub fn log( &self, actor: Option<&str>, action: &str, table_name: &str, record_id: &str, old_value: Option<Value>, new_value: Option<Value>, reason: Option<&str>, ) -> Result<String>
pub fn query_by_record( &self, table_name: &str, record_id: &str, limit: Option<usize>, ) -> Result<Vec<AuditEntry>>
pub fn query_by_actor( &self, actor: &str, limit: Option<usize>, ) -> Result<Vec<AuditEntry>>
pub fn query_recent(&self, limit: Option<usize>) -> Result<Vec<AuditEntry>>
Auto Trait Implementations§
impl Freeze for AuditStore
impl RefUnwindSafe for AuditStore
impl Send for AuditStore
impl Sync for AuditStore
impl Unpin for AuditStore
impl UnsafeUnpin for AuditStore
impl UnwindSafe for AuditStore
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