pub struct ClosedEpoch {
pub root: String,
pub commits: Vec<String>,
}Expand description
The sealed result of closing an epoch: the Merkle root to anchor plus the batch of commit SHAs it commits to.
Fields§
§root: StringHex SHA-256 Merkle root over the epoch’s commit-SHA leaves — the single value anchored on-chain for the whole batch.
commits: Vec<String>The commit SHAs this root notarises (leaf order).
Trait Implementations§
Source§impl Clone for ClosedEpoch
impl Clone for ClosedEpoch
Source§fn clone(&self) -> ClosedEpoch
fn clone(&self) -> ClosedEpoch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClosedEpoch
impl Debug for ClosedEpoch
impl Eq for ClosedEpoch
Source§impl PartialEq for ClosedEpoch
impl PartialEq for ClosedEpoch
Source§fn eq(&self, other: &ClosedEpoch) -> bool
fn eq(&self, other: &ClosedEpoch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClosedEpoch
Auto Trait Implementations§
impl Freeze for ClosedEpoch
impl RefUnwindSafe for ClosedEpoch
impl Send for ClosedEpoch
impl Sync for ClosedEpoch
impl Unpin for ClosedEpoch
impl UnsafeUnpin for ClosedEpoch
impl UnwindSafe for ClosedEpoch
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