pub struct OpEntry {
pub format: u32,
pub seq: u64,
pub prev: String,
pub time_ms: i64,
pub actor: Actor,
pub op: Op,
pub evidence: Vec<Attestation>,
pub facts: Option<Facts>,
pub symbols_engine: Option<u32>,
pub decision: Decision,
pub human: Option<HumanSignature>,
}Fields§
§format: u32Entry format version, covered by the digest and the signature.
seq: u64§prev: String§time_ms: i64Assigned by the daemon; never decreases along the chain.
actor: Actor§op: Op§evidence: Vec<Attestation>§facts: Option<Facts>§symbols_engine: Option<u32>Version of the symbol engine that computed this entry’s facts or
merge. Present exactly on change.propose and change.integrate
entries from format 2 on; absent means version 0.
decision: Decision§human: Option<HumanSignature>Implementations§
Source§impl OpEntry
impl OpEntry
pub fn digest(&self) -> String
Sourcepub fn uses_symbols_engine(&self) -> bool
pub fn uses_symbols_engine(&self) -> bool
Whether this entry’s facts or merge come from the symbol engine.
Sourcepub fn min_format(&self) -> u32
pub fn min_format(&self) -> u32
The first format that can contain this entry’s operation type.
Sourcepub fn engine(&self) -> Option<u32>
pub fn engine(&self) -> Option<u32>
The symbol engine version the auditor must recompute with, for entries that use the engine.
Sourcepub fn switches_daemon_key(&self) -> Option<&str>
pub fn switches_daemon_key(&self) -> Option<&str>
The daemon key in force after this entry, if the entry switched it:
an allowed daemon.rotate or daemon.recover.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpEntry
impl<'de> Deserialize<'de> for OpEntry
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 OpEntry
impl StructuralPartialEq for OpEntry
Auto Trait Implementations§
impl Forget for OpEntry
impl Freeze for OpEntry
impl RefUnwindSafe for OpEntry
impl Send for OpEntry
impl Sync for OpEntry
impl Unpin for OpEntry
impl UnsafeUnpin for OpEntry
impl UnwindSafe for OpEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.