pub enum EvidenceKind {
Deterministic,
Quorum {
n: u8,
k: u8,
},
Human {
identity: String,
},
}Expand description
Re-exported so a consumer holding evidence does not also depend on
boundgraph-core just for the types it is made of.
How a verdict was reached.
The distinction matters when weighing evidence: a deterministic checker and a majority vote are not the same kind of assurance, and an auditor must be able to tell them apart.
Variants§
Deterministic
A model-free checker. The strongest form.
Quorum
A statistical quorum: k of n branches agreed.
Human
A human approved, at a gate. Always signed by a human identity.
Trait Implementations§
Source§impl Clone for EvidenceKind
impl Clone for EvidenceKind
Source§fn clone(&self) -> EvidenceKind
fn clone(&self) -> EvidenceKind
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 EvidenceKind
impl Debug for EvidenceKind
Source§impl<'de> Deserialize<'de> for EvidenceKind
impl<'de> Deserialize<'de> for EvidenceKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EvidenceKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EvidenceKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EvidenceKind
Source§impl PartialEq for EvidenceKind
impl PartialEq for EvidenceKind
Source§impl Serialize for EvidenceKind
impl Serialize for EvidenceKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EvidenceKind
Auto Trait Implementations§
impl Freeze for EvidenceKind
impl RefUnwindSafe for EvidenceKind
impl Send for EvidenceKind
impl Sync for EvidenceKind
impl Unpin for EvidenceKind
impl UnsafeUnpin for EvidenceKind
impl UnwindSafe for EvidenceKind
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> Canonical for T
impl<T> Canonical for T
Source§fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
The canonical CBOR encoding of this value.