pub struct Actor<'a>(/* private fields */);Expand description
The subject performing an audited action (the “who”).
Typically a user id, service principal, or session identifier.
§Example
use audit_trail::Actor;
let actor = Actor::new("user-42");
assert_eq!(actor.as_str(), "user-42");Implementations§
Trait Implementations§
impl<'a> Copy for Actor<'a>
impl<'a> Eq for Actor<'a>
impl<'a> StructuralPartialEq for Actor<'a>
Auto Trait Implementations§
impl<'a> Freeze for Actor<'a>
impl<'a> RefUnwindSafe for Actor<'a>
impl<'a> Send for Actor<'a>
impl<'a> Sync for Actor<'a>
impl<'a> Unpin for Actor<'a>
impl<'a> UnsafeUnpin for Actor<'a>
impl<'a> UnwindSafe for Actor<'a>
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