Struct ex3_node_types::block::BlockBody
source · pub struct BlockBody {
pub txs: Vec<EncodedTransaction>,
pub data_integrity: Vec<MerkleNode>,
pub rejected_tx_indexes: Vec<u32>,
}Fields§
§txs: Vec<EncodedTransaction>Transactions in the block that are accepted
data_integrity: Vec<MerkleNode>Data integrity of sharding vaults
rejected_tx_indexes: Vec<u32>Transactions in the block that are rejected
Note:
The index of the rejected transaction in the txs field
Trait Implementations§
source§impl<'de> Deserialize<'de> for BlockBody
impl<'de> Deserialize<'de> for BlockBody
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 From<BlockBody> for EncodedBlockBody
impl From<BlockBody> for EncodedBlockBody
source§impl From<EncodedBlockBody> for BlockBody
impl From<EncodedBlockBody> for BlockBody
source§fn from(encoded_body: EncodedBlockBody) -> Self
fn from(encoded_body: EncodedBlockBody) -> Self
Converts to this type from the input type.
impl Eq for BlockBody
impl StructuralPartialEq for BlockBody
Auto Trait Implementations§
impl Freeze for BlockBody
impl RefUnwindSafe for BlockBody
impl Send for BlockBody
impl Sync for BlockBody
impl Unpin for BlockBody
impl UnwindSafe for BlockBody
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)