pub enum ProofVariant {
Update(UpdateProof),
Insert(InsertProof),
}
Expand description
Represents the variant of the proof in the indexed Merkle Tree.
This enum differentiates between the types of proofs that can be generated in the context of an indexed Merkle Tree (proofs of update and insert operations).
Variants:
Update(UpdateProof)
: Represents a proof for an update operation.Insert(InsertProof)
: Represents a proof for an insert operation.
Variants§
Update(UpdateProof)
Insert(InsertProof)
Trait Implementations§
source§impl Clone for ProofVariant
impl Clone for ProofVariant
source§fn clone(&self) -> ProofVariant
fn clone(&self) -> ProofVariant
Returns a copy of the value. Read more
1.0.0 · 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 ProofVariant
impl Debug for ProofVariant
source§impl<'de> Deserialize<'de> for ProofVariant
impl<'de> Deserialize<'de> for ProofVariant
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 RefUnwindSafe for ProofVariant
impl Send for ProofVariant
impl Sync for ProofVariant
impl Unpin for ProofVariant
impl UnwindSafe for ProofVariant
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