pub struct TrailEntry {
pub seq: u64,
pub timestamp: DateTime<Utc>,
pub actor: AgentId,
pub action: AuditAction,
pub resource: String,
pub prev_hash: HashDigest,
pub hash: HashDigest,
pub metadata: Option<Value>,
}Expand description
A single entry in the audit trail.
Fields§
§seq: u64Sequential entry number.
timestamp: DateTime<Utc>Timestamp of the entry.
actor: AgentIdAgent ID that performed the action.
action: AuditActionThe action that was performed.
resource: StringResource affected by the action.
prev_hash: HashDigestHash of the previous entry (“genesis” for first, “pruned” after auto-pruning).
hash: HashDigestHash of this entry.
metadata: Option<Value>Optional arbitrary metadata.
Trait Implementations§
Source§impl Clone for TrailEntry
impl Clone for TrailEntry
Source§fn clone(&self) -> TrailEntry
fn clone(&self) -> TrailEntry
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 TrailEntry
impl Debug for TrailEntry
Source§impl<'de> Deserialize<'de> for TrailEntry
impl<'de> Deserialize<'de> for TrailEntry
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 TrailEntry
impl RefUnwindSafe for TrailEntry
impl Send for TrailEntry
impl Sync for TrailEntry
impl Unpin for TrailEntry
impl UnsafeUnpin for TrailEntry
impl UnwindSafe for TrailEntry
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