pub struct AuditEventPayload {
pub action_type: String,
pub tenant_id: Option<String>,
pub target_type: Option<String>,
pub target_id: Option<String>,
pub target_display: Option<String>,
pub outcome: String,
pub details_json: Option<String>,
pub request_id: Option<String>,
pub correlation_id: Option<Uuid>,
}Expand description
Service -> Controller: forwarded semantic audit event.
The wire payload intentionally keeps semantic fields as strings so the controller can re-validate them against its canonical audit contract before persisting or exporting the event.
Fields§
§action_type: StringSemantic action identifier, such as service.certificate.issue.
tenant_id: Option<String>Tenant UUID as a string when the event is tenant-scoped.
target_type: Option<String>Optional semantic target type.
target_id: Option<String>Optional semantic target identifier.
target_display: Option<String>Optional human-readable target display value.
outcome: StringSemantic outcome, such as success or denied.
details_json: Option<String>Optional JSON-encoded details payload.
request_id: Option<String>Optional correlation identifier.
correlation_id: Option<Uuid>Optional correlation identifier linking events in a workflow chain.
Trait Implementations§
Source§impl Clone for AuditEventPayload
impl Clone for AuditEventPayload
Source§fn clone(&self) -> AuditEventPayload
fn clone(&self) -> AuditEventPayload
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 AuditEventPayload
impl Debug for AuditEventPayload
Source§impl<'de> Deserialize<'de> for AuditEventPayload
impl<'de> Deserialize<'de> for AuditEventPayload
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
impl Eq for AuditEventPayload
Source§impl PartialEq for AuditEventPayload
impl PartialEq for AuditEventPayload
Source§impl Serialize for AuditEventPayload
impl Serialize for AuditEventPayload
impl StructuralPartialEq for AuditEventPayload
Auto Trait Implementations§
impl Freeze for AuditEventPayload
impl RefUnwindSafe for AuditEventPayload
impl Send for AuditEventPayload
impl Sync for AuditEventPayload
impl Unpin for AuditEventPayload
impl UnsafeUnpin for AuditEventPayload
impl UnwindSafe for AuditEventPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.