pub struct TrailEntry {
pub seq: u64,
pub timestamp: DateTime<Utc>,
pub actor: String,
pub action: AuditAction,
pub resource: String,
pub prev_hash: String,
pub hash: String,
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: StringAgent ID that performed the action.
action: AuditActionThe action that was performed.
resource: StringResource affected by the action.
prev_hash: StringHash of the previous entry (“genesis” for first, “pruned” after auto-pruning).
hash: StringHash 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<TrailEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrailEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TrailEntry
impl Serialize for TrailEntry
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 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