pub struct Block {
pub header: BlockHeader,
pub txdata: Vec<Transaction>,
}
Expand description
Elements block
Fields§
§header: BlockHeader
Header of the block
txdata: Vec<Transaction>
Complete list of transaction in the block
Implementations§
source§impl Block
impl Block
sourcepub fn block_hash(&self) -> BlockHash
pub fn block_hash(&self) -> BlockHash
Return the block hash.
sourcepub fn get_size(&self) -> usize
👎Deprecated since 0.19.1: Please use Block::size
instead.
pub fn get_size(&self) -> usize
Block::size
instead.Get the size of the block
sourcepub fn get_weight(&self) -> usize
👎Deprecated since 0.19.1: Please use Block::weight
instead.
pub fn get_weight(&self) -> usize
Block::weight
instead.Get the weight of the block
Trait Implementations§
source§impl PartialEq for Block
impl PartialEq for Block
impl Eq for Block
impl StructuralPartialEq for Block
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