pub struct AuditEntry {
pub seq: u64,
pub prev_hash: String,
pub hash: String,
pub record: DecisionRecord,
}Expand description
A tamper-evident audit entry: a decision record chained to its predecessor by a SHA-1 hash over (prev_hash || canonical record).
Fields§
§seq: u64§prev_hash: String§hash: String§record: DecisionRecordImplementations§
Source§impl AuditEntry
impl AuditEntry
pub fn new(seq: u64, prev_hash: &str, record: DecisionRecord) -> Self
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
Auto Trait Implementations§
impl Freeze for AuditEntry
impl RefUnwindSafe for AuditEntry
impl Send for AuditEntry
impl Sync for AuditEntry
impl Unpin for AuditEntry
impl UnsafeUnpin for AuditEntry
impl UnwindSafe for AuditEntry
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