pub struct AuditEvent {
pub event_id: Uuid,
pub schema_name: String,
pub model: String,
pub operation: AuditOperation,
pub primary_key: Value,
pub actor: AuditActor,
pub tenant: Option<String>,
pub before: Option<Value>,
pub after: Option<Value>,
pub request_id: Option<String>,
pub occurred_at: DateTime<Utc>,
}Fields§
§event_id: Uuid§schema_name: StringSchema name as declared in the .cstack file — lets you scope
audit queries to a single service without inspecting model
strings.
model: StringModel name as declared in the schema (e.g. Account, Transfer).
operation: AuditOperation§primary_key: Value§actor: AuditActor§tenant: Option<String>Tenant identifier captured from PrincipalContext.tenant.id
when present. Banks running multi-tenant clusters use this to
scope per-tenant audit exports.
before: Option<Value>§after: Option<Value>§request_id: Option<String>W3C traceparent-style request id, if the transport layer
captured one. Useful for stitching audit rows to APM traces.
occurred_at: DateTime<Utc>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
Source§impl PartialEq for AuditEvent
impl PartialEq for AuditEvent
Source§impl Serialize for AuditEvent
impl Serialize for AuditEvent
impl StructuralPartialEq 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