pub enum SecurityEventType {
Show 26 variants
AuthenticationSuccess,
AuthenticationFailure,
Logout,
SessionCreated,
SessionDestroyed,
SessionExpired,
AccessGranted,
AccessDenied,
InsufficientPermissions,
AccountLocked,
AccountUnlocked,
PasswordChanged,
PasswordResetRequested,
TokenGenerated,
TokenRefreshed,
TokenRevoked,
TokenExpired,
InvalidToken,
RateLimitExceeded,
RateLimitWarning,
CsrfValidationFailed,
CsrfTokenMissing,
BruteForceDetected,
SuspiciousIp,
MultipleFailures,
Custom(String),
}Expand description
Security event types for audit logging.
Variants§
AuthenticationSuccess
Successful login
AuthenticationFailure
Failed login attempt
Logout
User logout
SessionCreated
Session created
SessionDestroyed
Session destroyed
SessionExpired
Session expired
AccessGranted
Access granted to resource
AccessDenied
Access denied to resource
InsufficientPermissions
Insufficient permissions
AccountLocked
Account locked due to failed attempts
AccountUnlocked
Account unlocked
PasswordChanged
Password changed
PasswordResetRequested
Password reset requested
TokenGenerated
Token generated
TokenRefreshed
Token refreshed
TokenRevoked
Token revoked
TokenExpired
Token expired
InvalidToken
Invalid token used
RateLimitExceeded
Rate limit exceeded
RateLimitWarning
Rate limit warning (approaching limit)
CsrfValidationFailed
CSRF validation failed
CsrfTokenMissing
Missing CSRF token
BruteForceDetected
Potential brute force attack detected
SuspiciousIp
Suspicious IP address
MultipleFailures
Multiple failed attempts from same source
Custom(String)
Custom security event
Implementations§
Source§impl SecurityEventType
impl SecurityEventType
Sourcepub fn default_severity(&self) -> SecurityEventSeverity
pub fn default_severity(&self) -> SecurityEventSeverity
Get the default severity for this event type.
Trait Implementations§
Source§impl Clone for SecurityEventType
impl Clone for SecurityEventType
Source§fn clone(&self) -> SecurityEventType
fn clone(&self) -> SecurityEventType
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 SecurityEventType
impl Debug for SecurityEventType
Source§impl Display for SecurityEventType
impl Display for SecurityEventType
Source§impl PartialEq for SecurityEventType
impl PartialEq for SecurityEventType
impl Eq for SecurityEventType
impl StructuralPartialEq for SecurityEventType
Auto Trait Implementations§
impl Freeze for SecurityEventType
impl RefUnwindSafe for SecurityEventType
impl Send for SecurityEventType
impl Sync for SecurityEventType
impl Unpin for SecurityEventType
impl UnwindSafe for SecurityEventType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.