Struct blockchain::Block
source · pub struct Block {
pub header: BlockHeader,
pub count: usize,
pub transactions: Vec<Transaction>,
}Expand description
Data storage in a blockchain
Fields§
§header: BlockHeaderInformation about the block and the miner
count: usizeTotal amount of transactions
transactions: Vec<Transaction>An amount of transactions
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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