pub struct LoggedEvent {Show 18 fields
pub seq: i64,
pub id: Uuid,
pub ts: OffsetDateTime,
pub agent: String,
pub cwd: String,
pub command: String,
pub argv: Vec<String>,
pub class: Class,
pub decision: Decision,
pub reason: String,
pub tier: u8,
pub risk: Option<u8>,
pub summary: Option<String>,
pub snapshot_id: Option<String>,
pub session: Option<String>,
pub prev_hash: String,
pub hash: String,
pub redacted: bool,
}Expand description
A single immutable row of the event log.
Fields§
§seq: i64Monotonic sequence number (storage rowid).
id: UuidThe originating command id.
ts: OffsetDateTimeWhen the command was observed.
agent: StringOriginating agent.
cwd: StringWorking directory (stored as a string).
command: StringThe raw command, preserved verbatim.
argv: Vec<String>The argument vector.
class: ClassRule-engine classification.
decision: DecisionThe decision recorded.
reason: StringThe rule name or resolution reason behind the decision.
tier: u8Tier that produced the decision.
risk: Option<u8>Optional severity score.
summary: Option<String>Optional one-sentence summary.
snapshot_id: Option<String>Optional snapshot reference.
session: Option<String>Optional originating session id (view metadata; not part of the hash).
prev_hash: StringHash of the predecessor row.
hash: StringThis row’s hash.
redacted: boolWhether this event has been redacted (hidden from default views).
Trait Implementations§
Source§impl Clone for LoggedEvent
impl Clone for LoggedEvent
Source§fn clone(&self) -> LoggedEvent
fn clone(&self) -> LoggedEvent
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 LoggedEvent
impl Debug for LoggedEvent
impl Eq for LoggedEvent
Source§impl PartialEq for LoggedEvent
impl PartialEq for LoggedEvent
Source§fn eq(&self, other: &LoggedEvent) -> bool
fn eq(&self, other: &LoggedEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoggedEvent
Auto Trait Implementations§
impl Freeze for LoggedEvent
impl RefUnwindSafe for LoggedEvent
impl Send for LoggedEvent
impl Sync for LoggedEvent
impl Unpin for LoggedEvent
impl UnsafeUnpin for LoggedEvent
impl UnwindSafe for LoggedEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.