[−][src]Struct nimiq_block::BlockBody
Fields
miner: Address
extra_data: Vec<u8>
transactions: Vec<Transaction>
pruned_accounts: Vec<PrunedAccount>
Methods
impl BlockBody
[src]
pub fn verify(
&self,
block_height: u32,
network_id: NetworkId
) -> Result<(), BlockError>
[src]
&self,
block_height: u32,
network_id: NetworkId
) -> Result<(), BlockError>
pub fn get_merkle_leaves<H: HashOutput>(&self) -> Vec<H>
[src]
pub fn get_metadata_size(extra_data_size: usize) -> usize
[src]
Trait Implementations
impl Clone for BlockBody
[src]
impl Default for BlockBody
[src]
impl Eq for BlockBody
[src]
impl Ord for BlockBody
[src]
fn cmp(&self, other: &BlockBody) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<BlockBody> for BlockBody
[src]
impl PartialOrd<BlockBody> for BlockBody
[src]
fn partial_cmp(&self, other: &BlockBody) -> Option<Ordering>
[src]
fn lt(&self, other: &BlockBody) -> bool
[src]
fn le(&self, other: &BlockBody) -> bool
[src]
fn gt(&self, other: &BlockBody) -> bool
[src]
fn ge(&self, other: &BlockBody) -> bool
[src]
impl Debug for BlockBody
[src]
impl StructuralPartialEq for BlockBody
[src]
impl StructuralEq for BlockBody
[src]
impl Deserialize for BlockBody
[src]
fn deserialize<R: ReadBytesExt>(
reader: &mut R
) -> Result<Self, SerializingError>
[src]
reader: &mut R
) -> Result<Self, SerializingError>
fn deserialize_from_vec(v: &Vec<u8>) -> Result<Self, SerializingError>
[src]
impl Serialize for BlockBody
[src]
fn serialize<W: WriteBytesExt>(
&self,
writer: &mut W
) -> Result<usize, SerializingError>
[src]
&self,
writer: &mut W
) -> Result<usize, SerializingError>
fn serialized_size(&self) -> usize
[src]
fn serialize_to_vec(&self) -> Vec<u8>
[src]
impl SerializeContent for BlockBody
[src]
impl Hash for BlockBody
[src]
fn hash<H: HashOutput>(&self) -> H
[src]
Auto Trait Implementations
impl Send for BlockBody
impl Sync for BlockBody
impl Unpin for BlockBody
impl UnwindSafe for BlockBody
impl RefUnwindSafe for BlockBody
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<H> SerializeContent for H where
H: HashOutput,
[src]
H: HashOutput,
impl<H> Hash for H where
H: HashOutput,
[src]
H: HashOutput,
fn hash<H>(&self) -> H where
H: HashOutput,
[src]
H: HashOutput,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,