pub struct AuditBuilder { /* private fields */ }Expand description
Sub-builder for audit logging settings.
Entered via AuthBuilder::with_audit(); call
done() to return to the parent builder.
Implementations§
Source§impl AuditBuilder
impl AuditBuilder
Sourcepub fn enabled(self, enabled: bool) -> Self
pub fn enabled(self, enabled: bool) -> Self
Enable audit logging.
§Example
use auth_framework::prelude::*;
let builder = AuthFramework::builder()
.with_audit().enabled(true).done();Sourcepub fn log_success(self, enabled: bool) -> Self
pub fn log_success(self, enabled: bool) -> Self
Log successful authentications.
§Example
use auth_framework::prelude::*;
let builder = AuthFramework::builder()
.with_audit().log_success(true).done();Sourcepub fn log_failures(self, enabled: bool) -> Self
pub fn log_failures(self, enabled: bool) -> Self
Log failed authentications.
§Example
use auth_framework::prelude::*;
let builder = AuthFramework::builder()
.with_audit().log_failures(true).done();Sourcepub fn done(self) -> AuthBuilder
pub fn done(self) -> AuthBuilder
Complete audit configuration and return to main builder.
Auto Trait Implementations§
impl Freeze for AuditBuilder
impl !RefUnwindSafe for AuditBuilder
impl Send for AuditBuilder
impl Sync for AuditBuilder
impl Unpin for AuditBuilder
impl UnsafeUnpin for AuditBuilder
impl !UnwindSafe for AuditBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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