Struct cfx_storage::StateProof
source · pub struct StateProof {
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 StateProof
impl StateProof
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_kv( &self, key: &Vec<u8>, value: Option<&[u8]>, root: StateRoot, maybe_intermediate_padding: Option<DeltaMptKeyPadding> ) -> bool
Trait Implementations§
source§impl Clone for StateProof
impl Clone for StateProof
source§fn clone(&self) -> StateProof
fn clone(&self) -> StateProof
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 StateProof
impl Debug for StateProof
source§impl Decodable for StateProof
impl Decodable for StateProof
source§impl Default for StateProof
impl Default for StateProof
source§fn default() -> StateProof
fn default() -> StateProof
Returns the “default value” for a type. Read more
source§impl Encodable for StateProof
impl Encodable for StateProof
source§impl PartialEq for StateProof
impl PartialEq for StateProof
source§fn eq(&self, other: &StateProof) -> bool
fn eq(&self, other: &StateProof) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StateProof
Auto Trait Implementations§
impl Freeze for StateProof
impl RefUnwindSafe for StateProof
impl Send for StateProof
impl Sync for StateProof
impl Unpin for StateProof
impl UnwindSafe for StateProof
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