pub struct AuditFact {
pub event_id: EventId,
pub event: CeremonyEvent,
pub ceremony_id: CeremonyId,
pub definition_name: CeremonyName,
pub definition_version: CeremonyVersion,
pub occurred_at: OffsetDateTime,
pub actor: AuditActor,
pub correlation_id: Option<EventId>,
pub causation_id: Option<EventId>,
pub trace: Option<TraceContext>,
}Expand description
Everything an audit record states before the journal assigns its position.
The event is the fact itself, payload included. The type a record
names is derived from it (fact.event.event_type()) rather than
declared beside it, so a fact cannot claim one thing and carry
another.
Fields§
§event_id: EventId§event: CeremonyEvent§ceremony_id: CeremonyId§definition_name: CeremonyName§definition_version: CeremonyVersion§occurred_at: OffsetDateTime§actor: AuditActor§correlation_id: Option<EventId>§causation_id: Option<EventId>§trace: Option<TraceContext>Implementations§
Trait Implementations§
impl Eq for AuditFact
impl StructuralPartialEq for AuditFact
Auto Trait Implementations§
impl Freeze for AuditFact
impl RefUnwindSafe for AuditFact
impl Send for AuditFact
impl Sync for AuditFact
impl Unpin for AuditFact
impl UnsafeUnpin for AuditFact
impl UnwindSafe for AuditFact
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