pub struct VerdictState {
pub verdict: Verdict,
pub note: String,
pub at: u64,
}Expand description
One reviewer’s answer, as the fold recorded it.
The at field is D44’s addition and the reason this is a struct
rather than the (Verdict, String) pair it used to be. A verdict is
keyed by channel, and a channel’s key rotates: revoke a key and
bind a fresh one and the channel now names a key that never cast this
verdict. Without the position, “which key approved this” has no answer
the log can reproduce, and an authorization record naming the current
key would be asserting something false.
This is derived state, not wire format — nothing here is hashed or persisted, so recording it moves no entry hash.
Fields§
§verdict: VerdictThe answer itself.
note: StringThe note the reviewer attached; empty when they left none.
at: u64Fold position the verdict was applied at, which is the log
sequence its op occupies — the same clock as
CommentState::at and KeyBinding::bound_at.
Trait Implementations§
Source§impl Clone for VerdictState
impl Clone for VerdictState
Source§fn clone(&self) -> VerdictState
fn clone(&self) -> VerdictState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerdictState
impl Debug for VerdictState
Source§impl PartialEq for VerdictState
impl PartialEq for VerdictState
Source§fn eq(&self, other: &VerdictState) -> bool
fn eq(&self, other: &VerdictState) -> bool
self and other values to be equal, and is used by ==.