pub struct SecurityEvent {
pub event_id: String,
pub timestamp: DateTime<Utc>,
pub event_type: String,
pub severity: String,
pub operation: String,
pub resource_id: Option<String>,
pub error_code: ErrorCode,
pub message: String,
pub context: Value,
}Expand description
安全事件记录
Fields§
§event_id: String事件唯一标识符
timestamp: DateTime<Utc>事件发生时间戳
event_type: String事件类型
severity: String事件严重程度
operation: String执行的操作类型
resource_id: Option<String>受影响的资源ID(可选)
error_code: ErrorCode错误代码
message: String事件描述消息
context: Value事件上下文信息
Trait 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
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