Struct cfx_storage::NodeMerkleProof
source · pub struct NodeMerkleProof {
pub delta_proof: Option<TrieProof>,
pub intermediate_proof: Option<TrieProof>,
pub snapshot_proof: Option<TrieProof>,
}
Fields§
§delta_proof: Option<TrieProof>
§intermediate_proof: Option<TrieProof>
§snapshot_proof: Option<TrieProof>
Implementations§
source§impl NodeMerkleProof
impl NodeMerkleProof
pub fn with_delta(&mut self, maybe_delta_proof: Option<TrieProof>) -> &mut Self
pub fn with_intermediate( &mut self, maybe_intermediate_proof: Option<TrieProof> ) -> &mut Self
pub fn with_snapshot( &mut self, maybe_snapshot_proof: Option<TrieProof> ) -> &mut Self
pub fn is_valid( &self, key: &Vec<u8>, storage_root: &StorageRoot, state_root: StateRoot, maybe_intermediate_padding: Option<DeltaMptKeyPadding> ) -> bool
Trait Implementations§
source§impl Clone for NodeMerkleProof
impl Clone for NodeMerkleProof
source§fn clone(&self) -> NodeMerkleProof
fn clone(&self) -> NodeMerkleProof
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 NodeMerkleProof
impl Debug for NodeMerkleProof
source§impl Decodable for NodeMerkleProof
impl Decodable for NodeMerkleProof
source§impl Default for NodeMerkleProof
impl Default for NodeMerkleProof
source§fn default() -> NodeMerkleProof
fn default() -> NodeMerkleProof
Returns the “default value” for a type. Read more
source§impl Encodable for NodeMerkleProof
impl Encodable for NodeMerkleProof
source§impl PartialEq for NodeMerkleProof
impl PartialEq for NodeMerkleProof
source§fn eq(&self, other: &NodeMerkleProof) -> bool
fn eq(&self, other: &NodeMerkleProof) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NodeMerkleProof
Auto Trait Implementations§
impl RefUnwindSafe for NodeMerkleProof
impl Send for NodeMerkleProof
impl Sync for NodeMerkleProof
impl Unpin for NodeMerkleProof
impl UnwindSafe for NodeMerkleProof
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