pub struct WalletTxShardingSubReport {
pub merkle_proof: Vec<u8>,
pub range: ReportRange,
pub txs: Vec<EncodedTransaction>,
pub tx_indexes: Vec<u32>,
}
Expand description
Wallet registry tx sharding sub report
Note: This is a sub report of wallet registry tx sharding report, contains register txs and wallet asset relation operation txs.
Fields§
§merkle_proof: Vec<u8>
merkle proof of the register txs
range: ReportRange
§txs: Vec<EncodedTransaction>
§tx_indexes: Vec<u32>
Implementations§
source§impl WalletTxShardingSubReport
impl WalletTxShardingSubReport
pub fn merkle_verify(&self, merkle_root: &[u8; 32]) -> bool
Trait Implementations§
source§impl Clone for WalletTxShardingSubReport
impl Clone for WalletTxShardingSubReport
source§fn clone(&self) -> WalletTxShardingSubReport
fn clone(&self) -> WalletTxShardingSubReport
Returns a copy 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 WalletTxShardingSubReport
impl Debug for WalletTxShardingSubReport
source§impl Default for WalletTxShardingSubReport
impl Default for WalletTxShardingSubReport
source§fn default() -> WalletTxShardingSubReport
fn default() -> WalletTxShardingSubReport
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WalletTxShardingSubReport
impl<'de> Deserialize<'de> for WalletTxShardingSubReport
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
source§impl PartialEq for WalletTxShardingSubReport
impl PartialEq for WalletTxShardingSubReport
source§fn eq(&self, other: &WalletTxShardingSubReport) -> bool
fn eq(&self, other: &WalletTxShardingSubReport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Storable for WalletTxShardingSubReport
impl Storable for WalletTxShardingSubReport
source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes
, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Eq for WalletTxShardingSubReport
impl StructuralPartialEq for WalletTxShardingSubReport
Auto Trait Implementations§
impl Freeze for WalletTxShardingSubReport
impl RefUnwindSafe for WalletTxShardingSubReport
impl Send for WalletTxShardingSubReport
impl Sync for WalletTxShardingSubReport
impl Unpin for WalletTxShardingSubReport
impl UnwindSafe for WalletTxShardingSubReport
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