pub struct MerkleBatch {
pub leaves: BTreeMap<String, Option<[u8; 32]>>,
}Expand description
Batch of Merkle updates to apply atomically.
Fields§
§leaves: BTreeMap<String, Option<[u8; 32]>>Leaf updates: object_id -> new hash (or None to delete)
Implementations§
Trait Implementations§
Source§impl Debug for MerkleBatch
impl Debug for MerkleBatch
Source§impl Default for MerkleBatch
impl Default for MerkleBatch
Source§fn default() -> MerkleBatch
fn default() -> MerkleBatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MerkleBatch
impl RefUnwindSafe for MerkleBatch
impl Send for MerkleBatch
impl Sync for MerkleBatch
impl Unpin for MerkleBatch
impl UnwindSafe for MerkleBatch
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> 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