pub struct AuditEvent {
pub id: Uuid,
pub tenant_id: TenantId,
pub event_type: String,
pub actor: String,
pub resource: String,
pub data: Value,
pub timestamp: DateTime<Utc>,
}Expand description
An audit log entry recording a tenant-scoped action.
Fields§
§id: UuidUnique event identifier.
tenant_id: TenantIdTenant this event belongs to.
event_type: StringType of event (e.g., “config_changed”, “tenant_created”).
actor: StringWho performed the action.
resource: StringWhat resource was affected.
data: ValueArbitrary event data.
timestamp: DateTime<Utc>When the 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 ComposeSchema for AuditEvent
impl ComposeSchema for AuditEvent
Source§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
Source§impl Serialize for AuditEvent
impl Serialize for AuditEvent
Auto Trait Implementations§
impl Freeze for AuditEvent
impl RefUnwindSafe for AuditEvent
impl Send for AuditEvent
impl Sync for AuditEvent
impl Unpin for AuditEvent
impl UnsafeUnpin for AuditEvent
impl UnwindSafe for AuditEvent
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