Enum exonum::storage::proof_map_index::BranchProofNode
[−]
[src]
pub enum BranchProofNode<V> { BranchKeyNotFound { left_hash: Hash, right_hash: Hash, left_key: DBKey, right_key: DBKey, }, LeftBranch { left_hash: Box<ProofNode<V>>, right_hash: Hash, left_key: DBKey, right_key: DBKey, }, RightBranch { left_hash: Hash, right_hash: Box<ProofNode<V>>, left_key: DBKey, right_key: DBKey, }, }
An enum that represents a branch node of the map proof.
Variants
BranchKeyNotFound
A branch of proof in which both children do not contain the requested key.
Fields of BranchKeyNotFound
left_hash: Hash | A hash of the left child. |
right_hash: Hash | A hash of the right child. |
left_key: DBKey | A key of the left child. |
right_key: DBKey | A key of the right child. |
LeftBranch
A branch of proof in which left child may contains the requested key.
Fields of LeftBranch
left_hash: Box<ProofNode<V>> | A left child node. |
right_hash: Hash | A hash of the right child. |
left_key: DBKey | A key of the left child. |
right_key: DBKey | A key of the right child. |
RightBranch
A branch of proof in which right child may contains the requested key.
Fields of RightBranch
left_hash: Hash | A hash of the left child. |
right_hash: Box<ProofNode<V>> | A right child node. |
left_key: DBKey | A key of the left child. |
right_key: DBKey | A key of the right child. |
Trait Implementations
impl<V: Serialize> Serialize for BranchProofNode<V>
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more