pub struct AuditEvent {
pub aae_version: String,
pub event_id: String,
pub event_type: String,
pub proposal_id: String,
pub tenant_id: String,
pub agent_id: String,
pub actor: String,
pub ts: DateTime<Utc>,
pub payload: Value,
pub prev_event_hash: Option<String>,
pub this_event_hash: String,
pub signature: Option<EventSignature>,
}Expand description
A single hash-chained audit log record.
Fields§
§aae_version: StringProtocol version.
event_id: StringULID of this event.
event_type: StringCanonical event type (or namespaced extension). Open string; core
v0.8 adds EVENT_TYPE_ARTIFACT_ATTESTED. Consumers MUST ignore
unknown event types.
proposal_id: StringULID of the proposal this relates to.
tenant_id: StringTenant scope.
agent_id: StringAgent identifier.
actor: StringWho emitted this event (agent, host, policy_engine, gateway, audit_sink, human:
ts: DateTime<Utc>Event timestamp.
payload: ValueEvent-specific payload.
prev_event_hash: Option<String>Hash of the previous event in the chain (None for genesis).
this_event_hash: StringSHA-256 of canonicalize(event_without_this_hash) || prev_event_hash.
signature: Option<EventSignature>Optional digital signature.
Trait Implementations§
Source§impl Clone for AuditEvent
impl Clone 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
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