pub struct SecurityEvent {
pub event_id: SecurityEventId,
pub kind: SecurityEventKind,
pub tenant_id: Option<TenantId>,
pub principal_id: Option<ActorId>,
pub severity: SecuritySeverity,
pub occurred_at_unix_ms: u64,
pub reason_code: SecurityErrorCode,
}Expand description
Typed, payload-free security events for audit and immediate alert routing.
Fields§
§event_id: SecurityEventId§kind: SecurityEventKind§tenant_id: Option<TenantId>§principal_id: Option<ActorId>§severity: SecuritySeverity§occurred_at_unix_ms: u64§reason_code: SecurityErrorCodeTrait Implementations§
Source§impl Clone for SecurityEvent
impl Clone for SecurityEvent
Source§fn clone(&self) -> SecurityEvent
fn clone(&self) -> SecurityEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecurityEvent
impl Debug for SecurityEvent
Source§impl<'de> Deserialize<'de> for SecurityEvent
impl<'de> Deserialize<'de> for SecurityEvent
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
impl Eq for SecurityEvent
Source§impl PartialEq for SecurityEvent
impl PartialEq for SecurityEvent
Source§impl Serialize for SecurityEvent
impl Serialize for SecurityEvent
impl StructuralPartialEq for SecurityEvent
Auto Trait Implementations§
impl Freeze for SecurityEvent
impl RefUnwindSafe for SecurityEvent
impl Send for SecurityEvent
impl Sync for SecurityEvent
impl Unpin for SecurityEvent
impl UnsafeUnpin for SecurityEvent
impl UnwindSafe for SecurityEvent
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