pub struct MerkleCommit {
pub commit_id: String,
pub session_id: String,
pub node_id: String,
pub merkle_root: [u8; 32],
pub parent_hash: Option<[u8; 32]>,
pub timestamp: i64,
pub energy: f32,
pub stable: bool,
}Expand description
Merkle commit record (Legacy wrapper for compatibility)
Fields§
§commit_id: String§session_id: String§node_id: String§merkle_root: [u8; 32]§parent_hash: Option<[u8; 32]>§timestamp: i64§energy: f32§stable: boolTrait Implementations§
Source§impl Clone for MerkleCommit
impl Clone for MerkleCommit
Source§fn clone(&self) -> MerkleCommit
fn clone(&self) -> MerkleCommit
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 moreAuto Trait Implementations§
impl Freeze for MerkleCommit
impl RefUnwindSafe for MerkleCommit
impl Send for MerkleCommit
impl Sync for MerkleCommit
impl Unpin for MerkleCommit
impl UnwindSafe for MerkleCommit
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