Skip to main content

Module audit

Module audit 

Source
Expand description

Audit metadata for API resources.

Provides AuditInfo, an embeddable struct that tracks when a resource was created and last updated, and by whom, plus Principal — the canonical actor-identity newtype threaded through audit events across services.

§Standards

Structs§

AuditInfo
Audit metadata embedded in API resource structs.
Principal
Canonical actor identity. Carries id, kind, and org-tree position.
PrincipalId
Opaque principal identifier. Flexible string storage: UUID strings for User principals, static service names for System/Service.
PrincipalParseError
Error returned by Principal::try_parse when the input is not a valid UUID string.
ResolvedPrincipal
A Principal paired with an optional human-readable display name.

Enums§

PrincipalKind
Discriminator for the kind of actor a Principal represents.