pub struct SecurityViolation {
pub violation_type: SecurityViolationType,
pub severity: SecuritySeverity,
pub description: String,
pub field: Option<String>,
pub value: Option<String>,
pub timestamp: DateTime<Utc>,
}
Expand description
Security violation details for logging and monitoring
Fields§
§violation_type: SecurityViolationType
Type of violation
severity: SecuritySeverity
Severity level
description: String
Description of the violation
field: Option<String>
Parameter or field involved
value: Option<String>
Original value that triggered the violation
timestamp: DateTime<Utc>
Timestamp of the violation
Trait Implementations§
Source§impl Clone for SecurityViolation
impl Clone for SecurityViolation
Source§fn clone(&self) -> SecurityViolation
fn clone(&self) -> SecurityViolation
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 SecurityViolation
impl Debug for SecurityViolation
Source§impl<'de> Deserialize<'de> for SecurityViolation
impl<'de> Deserialize<'de> for SecurityViolation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SecurityViolation
impl RefUnwindSafe for SecurityViolation
impl Send for SecurityViolation
impl Sync for SecurityViolation
impl Unpin for SecurityViolation
impl UnwindSafe for SecurityViolation
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