pub enum PredicateV1 {
FieldEquals {
field: String,
value: Value,
},
External {
verifier: String,
ref: String,
input_contract: Option<String>,
},
}Expand description
Closed typed predicate set for Law IR v1 invariants.
Variants§
FieldEquals
Checks a field against an exact JSON value.
External
Delegates evaluation to a declared external verifier.
Trait Implementations§
Source§impl Clone for PredicateV1
impl Clone for PredicateV1
Source§fn clone(&self) -> PredicateV1
fn clone(&self) -> PredicateV1
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 PredicateV1
impl Debug for PredicateV1
Source§impl<'de> Deserialize<'de> for PredicateV1
impl<'de> Deserialize<'de> for PredicateV1
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
Source§impl PartialEq for PredicateV1
impl PartialEq for PredicateV1
Source§fn eq(&self, other: &PredicateV1) -> bool
fn eq(&self, other: &PredicateV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PredicateV1
impl Serialize for PredicateV1
impl StructuralPartialEq for PredicateV1
Auto Trait Implementations§
impl Freeze for PredicateV1
impl RefUnwindSafe for PredicateV1
impl Send for PredicateV1
impl Sync for PredicateV1
impl Unpin for PredicateV1
impl UnsafeUnpin for PredicateV1
impl UnwindSafe for PredicateV1
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