pub struct BlockHeaders { /* private fields */ }
Implementations§
Source§impl BlockHeaders
impl BlockHeaders
pub fn new( version: u8, timestamp: u64, reference: Base58String, nxt_consensus: NxtConsensus, transactions_root: Base58String, id: Base58String, features: Vec<u32>, desired_reward: i64, generator: Address, signature: Base58String, blocksize: u32, transaction_count: u32, height: u32, total_fee: u64, reward: u64, vrf: Base58String, ) -> Self
pub fn version(&self) -> u8
pub fn timestamp(&self) -> u64
pub fn reference(&self) -> Base58String
pub fn nxt_consensus(&self) -> NxtConsensus
pub fn transactions_root(&self) -> Base58String
pub fn id(&self) -> Base58String
pub fn features(&self) -> Vec<u32>
pub fn desired_reward(&self) -> i64
pub fn generator(&self) -> Address
pub fn signature(&self) -> Base58String
pub fn blocksize(&self) -> u32
pub fn transaction_count(&self) -> u32
pub fn height(&self) -> u32
pub fn total_fee(&self) -> u64
pub fn reward(&self) -> u64
pub fn vrf(&self) -> Base58String
Trait Implementations§
Source§impl Clone for BlockHeaders
impl Clone for BlockHeaders
Source§fn clone(&self) -> BlockHeaders
fn clone(&self) -> BlockHeaders
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 BlockHeaders
impl Debug for BlockHeaders
Source§impl PartialEq for BlockHeaders
impl PartialEq for BlockHeaders
Source§impl TryFrom<&Value> for BlockHeaders
impl TryFrom<&Value> for BlockHeaders
impl Eq for BlockHeaders
impl StructuralPartialEq for BlockHeaders
Auto Trait Implementations§
impl Freeze for BlockHeaders
impl RefUnwindSafe for BlockHeaders
impl Send for BlockHeaders
impl Sync for BlockHeaders
impl Unpin for BlockHeaders
impl UnwindSafe for BlockHeaders
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request