pub enum Verifier {
Assertion {
predicate: Expr,
},
Judge {
seat: String,
packet: Box<BridgePacket>,
reply_to: Option<Box<BridgePacket>>,
target: String,
min_votes: u32,
},
Evidence {
cites: Vec<String>,
},
}Expand description
Semantic verifier registered for a compiled intent.
Variants§
Assertion
Deterministic predicate evaluated over the decoded answer expression.
Fields
Judge
Judge vote represented as a checked BRIDGE packet.
Fields
§
packet: Box<BridgePacket>Checked BRIDGE packet carrying one or more bridge/Vote parts.
§
reply_to: Option<Box<BridgePacket>>Optional parent packet used for BRIDGE reply legality.
Evidence
Retrieval or ground-truth check against cited evidence.
Trait Implementations§
impl Eq for Verifier
impl StructuralPartialEq for Verifier
Auto Trait Implementations§
impl Freeze for Verifier
impl RefUnwindSafe for Verifier
impl Send for Verifier
impl Sync for Verifier
impl Unpin for Verifier
impl UnsafeUnpin for Verifier
impl UnwindSafe for Verifier
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.