pub struct ActivityLogs { /* private fields */ }Expand description
Activity log operations.
Implementations§
Source§impl ActivityLogs
impl ActivityLogs
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Whether activity logs are supported by the active backend.
Sourcepub fn record(&self, input: RecordActivity) -> Result<ActivityLogEntry>
pub fn record(&self, input: RecordActivity) -> Result<ActivityLogEntry>
Record a new activity log entry.
Sourcepub fn get(&self, id: ActivityLogId) -> Result<Option<ActivityLogEntry>>
pub fn get(&self, id: ActivityLogId) -> Result<Option<ActivityLogEntry>>
Get an entry by ID.
Sourcepub fn list(&self, filter: ActivityLogFilter) -> Result<Vec<ActivityLogEntry>>
pub fn list(&self, filter: ActivityLogFilter) -> Result<Vec<ActivityLogEntry>>
List entries with filter (most recent first).
Sourcepub fn history_for_subject(
&self,
subject_type: &str,
subject_id: Uuid,
) -> Result<Vec<ActivityLogEntry>>
pub fn history_for_subject( &self, subject_type: &str, subject_id: Uuid, ) -> Result<Vec<ActivityLogEntry>>
List the full history for a single subject, most recent first.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ActivityLogs
impl !UnwindSafe for ActivityLogs
impl Freeze for ActivityLogs
impl Send for ActivityLogs
impl Sync for ActivityLogs
impl Unpin for ActivityLogs
impl UnsafeUnpin for ActivityLogs
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