pub struct Action<'a>(/* private fields */);Expand description
The verb of an audited event (the “what”).
Conventionally a dotted action name such as "user.login" or
"record.delete".
§Example
use audit_trail::Action;
let action = Action::new("user.login");
assert_eq!(action.as_str(), "user.login");Implementations§
Trait Implementations§
Source§impl<'a> PartialEq for Action<'a>
impl<'a> PartialEq for Action<'a>
impl<'a> Copy for Action<'a>
impl<'a> Eq for Action<'a>
impl<'a> StructuralPartialEq for Action<'a>
Auto Trait Implementations§
impl<'a> Freeze for Action<'a>
impl<'a> RefUnwindSafe for Action<'a>
impl<'a> Send for Action<'a>
impl<'a> Sync for Action<'a>
impl<'a> Unpin for Action<'a>
impl<'a> UnsafeUnpin for Action<'a>
impl<'a> UnwindSafe for Action<'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