pub enum TransactionNodeWrite {
Upsert {
key: Vec<u8>,
value: Vec<u8>,
},
Delete {
key: Vec<u8>,
},
}Expand description
A content-addressed node write staged by a transaction.
Variants§
Upsert
Insert or replace bytes under a content-addressed key.
Delete
Delete bytes under a content-addressed key.
Trait Implementations§
Source§impl Clone for TransactionNodeWrite
impl Clone for TransactionNodeWrite
Source§fn clone(&self) -> TransactionNodeWrite
fn clone(&self) -> TransactionNodeWrite
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 TransactionNodeWrite
impl Debug for TransactionNodeWrite
Source§impl PartialEq for TransactionNodeWrite
impl PartialEq for TransactionNodeWrite
impl StructuralPartialEq for TransactionNodeWrite
Auto Trait Implementations§
impl Freeze for TransactionNodeWrite
impl RefUnwindSafe for TransactionNodeWrite
impl Send for TransactionNodeWrite
impl Sync for TransactionNodeWrite
impl Unpin for TransactionNodeWrite
impl UnsafeUnpin for TransactionNodeWrite
impl UnwindSafe for TransactionNodeWrite
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> 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