pub struct DataAccessEvent { /* private fields */ }Expand description
Data access event builder.
Implementations§
Source§impl DataAccessEvent
impl DataAccessEvent
Sourcepub fn new(
subject: String,
resource: String,
action: String,
result: AuditResult,
) -> Self
pub fn new( subject: String, resource: String, action: String, result: AuditResult, ) -> Self
Create new data access event.
Sourcepub fn with_rows_accessed(self, count: u64) -> Self
pub fn with_rows_accessed(self, count: u64) -> Self
Set rows accessed.
Sourcepub fn build(self) -> AuditLogEntry
pub fn build(self) -> AuditLogEntry
Build audit log entry.
Auto Trait Implementations§
impl Freeze for DataAccessEvent
impl RefUnwindSafe for DataAccessEvent
impl Send for DataAccessEvent
impl Sync for DataAccessEvent
impl Unpin for DataAccessEvent
impl UnsafeUnpin for DataAccessEvent
impl UnwindSafe for DataAccessEvent
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more