#[non_exhaustive]pub struct AuthCountersSnapshot {
pub success_mtls: u64,
pub success_bearer: u64,
pub success_oauth_jwt: u64,
pub failure_missing_credential: u64,
pub failure_invalid_credential: u64,
pub failure_expired_credential: u64,
pub failure_rate_limited: u64,
pub failure_pre_auth_gate: u64,
}Expand description
Snapshot of authentication success/failure counters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.success_mtls: u64Successful mTLS authentications.
success_bearer: u64Successful bearer-token authentications.
success_oauth_jwt: u64Successful OAuth JWT authentications.
failure_missing_credential: u64Failures because no credential was presented.
failure_invalid_credential: u64Failures because the credential was malformed or wrong.
failure_expired_credential: u64Failures because the credential had expired.
failure_rate_limited: u64Failures because the source IP was rate-limited (post-failure backoff).
failure_pre_auth_gate: u64Failures because the source IP exceeded the pre-auth abuse gate. These never reach the password-hash verification path.
Trait Implementations§
Source§impl Clone for AuthCountersSnapshot
impl Clone for AuthCountersSnapshot
Source§fn clone(&self) -> AuthCountersSnapshot
fn clone(&self) -> AuthCountersSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthCountersSnapshot
impl Debug for AuthCountersSnapshot
Source§impl PartialEq for AuthCountersSnapshot
impl PartialEq for AuthCountersSnapshot
Source§impl Serialize for AuthCountersSnapshot
impl Serialize for AuthCountersSnapshot
impl Copy for AuthCountersSnapshot
impl Eq for AuthCountersSnapshot
impl StructuralPartialEq for AuthCountersSnapshot
Auto Trait Implementations§
impl Freeze for AuthCountersSnapshot
impl RefUnwindSafe for AuthCountersSnapshot
impl Send for AuthCountersSnapshot
impl Sync for AuthCountersSnapshot
impl Unpin for AuthCountersSnapshot
impl UnsafeUnpin for AuthCountersSnapshot
impl UnwindSafe for AuthCountersSnapshot
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