pub struct ProofVerification {
pub valid: bool,
pub index: usize,
pub root_hash: DocumentId,
pub error: Option<String>,
}Expand description
Result of proof verification.
Fields§
§valid: boolWhether the proof is valid.
index: usizeBlock index that was verified.
root_hash: DocumentIdExpected root hash.
error: Option<String>Error message if verification failed.
Implementations§
Trait Implementations§
Source§impl Clone for ProofVerification
impl Clone for ProofVerification
Source§fn clone(&self) -> ProofVerification
fn clone(&self) -> ProofVerification
Returns a duplicate 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 ProofVerification
impl Debug for ProofVerification
Source§impl PartialEq for ProofVerification
impl PartialEq for ProofVerification
impl Eq for ProofVerification
impl StructuralPartialEq for ProofVerification
Auto Trait Implementations§
impl Freeze for ProofVerification
impl RefUnwindSafe for ProofVerification
impl Send for ProofVerification
impl Sync for ProofVerification
impl Unpin for ProofVerification
impl UnsafeUnpin for ProofVerification
impl UnwindSafe for ProofVerification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.