Struct fuel_core::database::storage::DenseMerkleMetadata
source · pub struct DenseMerkleMetadata {
pub root: Bytes32,
pub version: u64,
}
Expand description
Metadata for dense Merkle trees
Fields§
§root: Bytes32
The root hash of the dense Merkle tree structure
version: u64
The version of the dense Merkle tree structure is equal to the number of leaves. Every time we append a new leaf to the Merkle tree data set, we increment the version number.
Trait Implementations§
source§impl Clone for DenseMerkleMetadata
impl Clone for DenseMerkleMetadata
source§fn clone(&self) -> DenseMerkleMetadata
fn clone(&self) -> DenseMerkleMetadata
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 Default for DenseMerkleMetadata
impl Default for DenseMerkleMetadata
source§impl<'de> Deserialize<'de> for DenseMerkleMetadata
impl<'de> Deserialize<'de> for DenseMerkleMetadata
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 DenseMerkleMetadata
impl Send for DenseMerkleMetadata
impl Sync for DenseMerkleMetadata
impl Unpin for DenseMerkleMetadata
impl UnwindSafe for DenseMerkleMetadata
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