pub struct UserActivity {
pub timestamp: Option<i64>,
pub actor: Option<String>,
pub action: Action,
pub subject: Subject,
pub source: SourceKind,
pub detail: String,
}Expand description
One normalized user-activity event: who did what, when, to which subject.
Fields§
§timestamp: Option<i64>Unix epoch seconds, when the source records it. None when the source
carries no usable timestamp (e.g. plain bash / PowerShell PSReadLine).
actor: Option<String>The acting user / SID, when the source attributes it. Most v0.1 sources do not attribute a user; SRUM (v0.2) is the first by-SID source.
action: ActionWhat was done.
subject: SubjectWhat it was done to.
source: SourceKindWhich reader produced this event.
detail: StringA human-readable detail string for the event.
Trait Implementations§
Source§impl Clone for UserActivity
impl Clone for UserActivity
Source§fn clone(&self) -> UserActivity
fn clone(&self) -> UserActivity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserActivity
impl Debug for UserActivity
impl Eq for UserActivity
Source§impl PartialEq for UserActivity
impl PartialEq for UserActivity
Source§fn eq(&self, other: &UserActivity) -> bool
fn eq(&self, other: &UserActivity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UserActivity
Auto Trait Implementations§
impl Freeze for UserActivity
impl RefUnwindSafe for UserActivity
impl Send for UserActivity
impl Sync for UserActivity
impl Unpin for UserActivity
impl UnsafeUnpin for UserActivity
impl UnwindSafe for UserActivity
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