pub struct Solution {
pub predicate_to_solve: PredicateAddress,
pub predicate_data: Vec<Value>,
pub state_mutations: Vec<Mutation>,
}
Expand description
A solution for a single contract predicate.
Fields§
§predicate_to_solve: PredicateAddress
The predicate that the solution attempts to solve.
predicate_data: Vec<Value>
The input data required by the predicate.
state_mutations: Vec<Mutation>
The state mutations proposed by the solution.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Solution
impl<'de> Deserialize<'de> for Solution
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 Ord for Solution
impl Ord for Solution
Source§impl PartialOrd for Solution
impl PartialOrd for Solution
impl Eq for Solution
impl StructuralPartialEq for Solution
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
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