pub struct ContractPredicate {
pub equals: Value,
pub field: String,
}Expand description
The deterministic equality predicate the state-trigger evaluator already had.
field is a dot-separated path read through JSON objects only; equals is
compared with JSON value equality, which distinguishes integers from floats
exactly as serde_json does.
Fields§
§equals: Value§field: StringTrait Implementations§
Source§impl Clone for ContractPredicate
impl Clone for ContractPredicate
Source§impl Debug for ContractPredicate
impl Debug for ContractPredicate
Source§impl<'de> Deserialize<'de> for ContractPredicate
impl<'de> Deserialize<'de> for ContractPredicate
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 From<&StateTriggerPredicate> for ContractPredicate
impl From<&StateTriggerPredicate> for ContractPredicate
Source§fn from(value: &StateTriggerPredicate) -> Self
fn from(value: &StateTriggerPredicate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContractPredicate
impl PartialEq for ContractPredicate
Source§impl Serialize for ContractPredicate
impl Serialize for ContractPredicate
impl StructuralPartialEq for ContractPredicate
Auto Trait Implementations§
impl Freeze for ContractPredicate
impl RefUnwindSafe for ContractPredicate
impl Send for ContractPredicate
impl Sync for ContractPredicate
impl Unpin for ContractPredicate
impl UnsafeUnpin for ContractPredicate
impl UnwindSafe for ContractPredicate
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