pub struct AuditEvent {
pub sequence: u64,
pub kind: AuditEventKind,
pub actor: Actor,
pub workflow_id: String,
pub task_id: Option<String>,
pub timestamp_epoch_secs: u64,
pub detail: Option<String>,
pub metadata: Vec<(String, String)>,
}Expand description
A single immutable audit event.
Fields§
§sequence: u64Monotonically increasing sequence number.
kind: AuditEventKindEvent kind.
actor: ActorActor who triggered the event.
workflow_id: StringWorkflow ID this event relates to.
task_id: Option<String>Optional task ID this event relates to.
timestamp_epoch_secs: u64Wall-clock timestamp as a Unix epoch second (for deterministic tests we use u64).
detail: Option<String>Optional free-form detail message.
metadata: Vec<(String, String)>Key-value metadata.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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