pub struct Target<'a>(/* private fields */);Expand description
The resource an audited action was performed on (the “where”).
Typically a resource identifier such as "file:///etc/passwd",
"record:42", or "tenant:acme/user:42".
§Example
use audit_trail::Target;
let target = Target::new("record:42");
assert_eq!(target.as_str(), "record:42");Implementations§
Trait Implementations§
Source§impl<'a> PartialEq for Target<'a>
impl<'a> PartialEq for Target<'a>
impl<'a> Copy for Target<'a>
impl<'a> Eq for Target<'a>
impl<'a> StructuralPartialEq for Target<'a>
Auto Trait Implementations§
impl<'a> Freeze for Target<'a>
impl<'a> RefUnwindSafe for Target<'a>
impl<'a> Send for Target<'a>
impl<'a> Sync for Target<'a>
impl<'a> Unpin for Target<'a>
impl<'a> UnsafeUnpin for Target<'a>
impl<'a> UnwindSafe for Target<'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