pub struct AuthenticationEvent { /* private fields */ }Expand description
Authentication event builder.
Implementations§
Source§impl AuthenticationEvent
impl AuthenticationEvent
Sourcepub fn new(subject: String, result: AuditResult) -> Self
pub fn new(subject: String, result: AuditResult) -> Self
Create new authentication event.
Sourcepub fn with_method(self, method: String) -> Self
pub fn with_method(self, method: String) -> Self
Set authentication method.
Sourcepub fn with_reason(self, reason: String) -> Self
pub fn with_reason(self, reason: String) -> Self
Set failure reason.
Sourcepub fn build(self) -> AuditLogEntry
pub fn build(self) -> AuditLogEntry
Build audit log entry.
Auto Trait Implementations§
impl Freeze for AuthenticationEvent
impl RefUnwindSafe for AuthenticationEvent
impl Send for AuthenticationEvent
impl Sync for AuthenticationEvent
impl Unpin for AuthenticationEvent
impl UnsafeUnpin for AuthenticationEvent
impl UnwindSafe for AuthenticationEvent
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