pub struct AuditLog {
pub id: Uuid,
pub user_id: Option<Uuid>,
pub session_id: Option<Uuid>,
pub action: String,
pub resource: String,
pub result: AuditResult,
pub ip_address: Option<IpAddr>,
pub user_agent: Option<String>,
pub metadata: HashMap<String, Value>,
pub risk_score: u8,
pub timestamp: DateTime<Utc>,
}Expand description
Audit log entry
Fields§
§id: Uuid§user_id: Option<Uuid>§session_id: Option<Uuid>§action: String§resource: String§result: AuditResult§ip_address: Option<IpAddr>§user_agent: Option<String>§metadata: HashMap<String, Value>§risk_score: u8§timestamp: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuditLog
impl<'de> Deserialize<'de> for AuditLog
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 AuditLog
impl RefUnwindSafe for AuditLog
impl Send for AuditLog
impl Sync for AuditLog
impl Unpin for AuditLog
impl UnwindSafe for AuditLog
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