pub struct StateDiffInput {
pub contract: String,
pub state_a: Value,
pub state_b: Value,
pub version: u32,
}Expand description
The complete deterministic input: two states, and the contract’s identity.
Members are declared alphabetically so the canonical struct encoding matches
the sorted-key encoding serde_json gives every JSON object.
Fields§
§contract: String§state_a: Value§state_b: Value§version: u32Implementations§
Trait Implementations§
Source§impl Clone for StateDiffInput
impl Clone for StateDiffInput
Source§impl Debug for StateDiffInput
impl Debug for StateDiffInput
Source§impl<'de> Deserialize<'de> for StateDiffInput
impl<'de> Deserialize<'de> for StateDiffInput
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 StateDiffInput
impl PartialEq for StateDiffInput
Source§impl Serialize for StateDiffInput
impl Serialize for StateDiffInput
impl StructuralPartialEq for StateDiffInput
Auto Trait Implementations§
impl Freeze for StateDiffInput
impl RefUnwindSafe for StateDiffInput
impl Send for StateDiffInput
impl Sync for StateDiffInput
impl Unpin for StateDiffInput
impl UnsafeUnpin for StateDiffInput
impl UnwindSafe for StateDiffInput
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