pub struct ProofStep {
pub value: String,
pub pos: usize,
}Expand description
A step in a Merkle proof.
Fields§
§value: StringThe value of the sibiling node at this step.
pos: usizeThe position of the sibiling node at this step.
0 is on the left, and 1 is on the right.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProofStep
impl<'de> Deserialize<'de> for ProofStep
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
Auto Trait Implementations§
impl Freeze for ProofStep
impl RefUnwindSafe for ProofStep
impl Send for ProofStep
impl Sync for ProofStep
impl Unpin for ProofStep
impl UnwindSafe for ProofStep
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