pub struct TreeSnapshot {
pub root_hash: String,
pub node_count: usize,
pub nodes: Vec<TreeNodeSnapshot>,
pub taken_at: DateTime<Utc>,
}Expand description
Serializable snapshot of the full tree state for cross-node sync.
Fields§
§root_hash: StringHex-encoded Merkle root hash at snapshot time.
node_count: usizeNumber of nodes in the tree.
nodes: Vec<TreeNodeSnapshot>Serialized tree state (all nodes and their metadata).
taken_at: DateTime<Utc>Timestamp when snapshot was taken.
Trait Implementations§
Source§impl Clone for TreeSnapshot
impl Clone for TreeSnapshot
Source§fn clone(&self) -> TreeSnapshot
fn clone(&self) -> TreeSnapshot
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 moreSource§impl Debug for TreeSnapshot
impl Debug for TreeSnapshot
Source§impl<'de> Deserialize<'de> for TreeSnapshot
impl<'de> Deserialize<'de> for TreeSnapshot
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 Freeze for TreeSnapshot
impl RefUnwindSafe for TreeSnapshot
impl Send for TreeSnapshot
impl Sync for TreeSnapshot
impl Unpin for TreeSnapshot
impl UnsafeUnpin for TreeSnapshot
impl UnwindSafe for TreeSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more