pub struct ChainedRecord {
pub seq: u64,
pub prev: String,
pub hash: String,
pub record: AuditRecord,
}Expand description
One envelope in a hash-chained trail: the record plus the chain fields that make deletion / edit / reordering detectable.
Fields§
§seq: u640-based position in the chain.
prev: StringThe previous envelope’s hash ("genesis" for the first).
hash: Stringsha256(prev + json(record)), hex-encoded.
record: AuditRecordThe audited record.
Trait Implementations§
Source§impl Clone for ChainedRecord
impl Clone for ChainedRecord
Source§impl Debug for ChainedRecord
impl Debug for ChainedRecord
Source§impl<'de> Deserialize<'de> for ChainedRecord
impl<'de> Deserialize<'de> for ChainedRecord
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 Forget for ChainedRecord
impl Freeze for ChainedRecord
impl RefUnwindSafe for ChainedRecord
impl Send for ChainedRecord
impl Sync for ChainedRecord
impl Unpin for ChainedRecord
impl UnsafeUnpin for ChainedRecord
impl UnwindSafe for ChainedRecord
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