pub struct AuditEntry {
pub seq: u64,
pub prev_hash: [u8; 32],
pub at_unix: u64,
pub bearer: Did,
pub scope: Scope,
pub op: Ops,
pub capability_id: Option<[u8; 16]>,
pub decision: AuditDecision,
pub entry_hash: [u8; 32],
pub node_signature: Vec<u8>,
}Expand description
One immutable, signed entry in the access log.
Fields§
§seq: u64§prev_hash: [u8; 32]Hash of the previous entry (all-zero for the first) — the chain link.
at_unix: u64§bearer: Did§scope: Scope§op: Ops§capability_id: Option<[u8; 16]>§decision: AuditDecision§entry_hash: [u8; 32]BLAKE3 of this entry’s canonical content (including prev_hash).
node_signature: Vec<u8>The node’s signature over the canonical content.
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<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
impl Eq for AuditEntry
Source§impl PartialEq for AuditEntry
impl PartialEq for AuditEntry
Source§impl Serialize for AuditEntry
impl Serialize for AuditEntry
impl StructuralPartialEq 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