pub struct AuditEntry {Show 19 fields
pub timestamp: String,
pub agent_id: String,
pub tool: String,
pub action: Option<String>,
pub input_hash: String,
pub output_tokens: u32,
pub role: String,
pub event_type: AuditEventType,
pub prev_hash: String,
pub entry_hash: String,
pub signature: Option<String>,
pub v: Option<u64>,
pub session_id: Option<String>,
pub seq: Option<u64>,
pub instance_id: Option<String>,
pub policy_digest: Option<String>,
pub decision: Option<String>,
pub output_digest: Option<String>,
pub v2_hash: Option<String>,
}Expand description
One trail entry. The v2 fields (see audit_trail/v2.rs) are absent on
entries an older writer appended.
Fields§
§timestamp: String§agent_id: String§tool: String§action: Option<String>§input_hash: String§output_tokens: u32§role: String§event_type: AuditEventType§prev_hash: String§entry_hash: String§signature: Option<String>Ed25519 signature over entry_hash, proving provenance from the local
lean-ctx identity. None only when the keypair is unavailable (early boot).
v: Option<u64>Entry version: absent on v1 entries, ENTRY_VERSION on entries this
build writes.
session_id: Option<String>The session whose call this entry records.
seq: Option<u64>Position of the entry in its session, from 1, in chain order.
instance_id: Option<String>§policy_digest: Option<String>§decision: Option<String>The AuditDecision label, kept as text so a reader older than the
writer still parses a decision it does not know.
output_digest: Option<String>§v2_hash: Option<String>Chained hash over the v2 fields (audit_trail/v2.rs).
Trait Implementations§
Source§impl Clone for AuditEntry
impl Clone for AuditEntry
Source§fn clone(&self) -> AuditEntry
fn clone(&self) -> AuditEntry
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 AuditEntry
impl Debug for AuditEntry
Source§impl<'de> Deserialize<'de> for AuditEntry
impl<'de> Deserialize<'de> for AuditEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuditEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuditEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AuditEntry
impl Serialize for AuditEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for AuditEntry
impl Freeze for AuditEntry
impl Move for AuditEntry
impl RefUnwindSafe for AuditEntry
impl Send for AuditEntrywhere
RawVecInner: Send,
impl Sync for AuditEntrywhere
RawVecInner: Sync,
impl Unpin for AuditEntry
impl UnsafeUnpin for AuditEntry
impl UnwindSafe for AuditEntrywhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more