pub struct AuditEvent {Show 16 fields
pub id: Uuid,
pub timestamp: DateTime<Utc>,
pub event_type: AuditEventType,
pub user_id: Option<String>,
pub user_info: Option<UserInfo>,
pub source_ip: Option<String>,
pub user_agent: Option<String>,
pub resource: Option<String>,
pub action: Option<String>,
pub outcome: EventOutcome,
pub description: String,
pub details: HashMap<String, Value>,
pub severity: AuditLogLevel,
pub session_id: Option<String>,
pub request_id: Option<String>,
pub node_id: String,
}Expand description
Audit event entry
Fields§
§id: UuidUnique event ID
timestamp: DateTime<Utc>Event timestamp
event_type: AuditEventTypeEvent type
user_id: Option<String>User who triggered the event
user_info: Option<UserInfo>User information at the time of event
source_ip: Option<String>Source IP address
user_agent: Option<String>User agent
resource: Option<String>Resource affected by the event
action: Option<String>Action performed
outcome: EventOutcomeEvent outcome (success/failure)
description: StringEvent description
details: HashMap<String, Value>Additional event details
severity: AuditLogLevelSeverity level
session_id: Option<String>Session ID
request_id: Option<String>Request ID for correlation
node_id: StringNode ID where event occurred
Trait Implementations§
Source§impl Clone for AuditEvent
impl Clone for AuditEvent
Source§fn clone(&self) -> AuditEvent
fn clone(&self) -> AuditEvent
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 AuditEvent
impl Debug for AuditEvent
Source§impl<'de> Deserialize<'de> for AuditEvent
impl<'de> Deserialize<'de> for AuditEvent
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 AuditEvent
impl RefUnwindSafe for AuditEvent
impl Send for AuditEvent
impl Sync for AuditEvent
impl Unpin for AuditEvent
impl UnwindSafe for AuditEvent
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> 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<'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