Struct waves_rust::model::rs::BlockHeaders
source · [−]pub struct BlockHeaders { /* private fields */ }
Implementations
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
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
sourceimpl Clone for BlockHeaders
impl Clone for BlockHeaders
sourcefn clone(&self) -> BlockHeaders
fn clone(&self) -> BlockHeaders
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BlockHeaders
impl Debug for BlockHeaders
sourceimpl PartialEq<BlockHeaders> for BlockHeaders
impl PartialEq<BlockHeaders> for BlockHeaders
sourcefn eq(&self, other: &BlockHeaders) -> bool
fn eq(&self, other: &BlockHeaders) -> bool
sourceimpl TryFrom<&Value> for BlockHeaders
impl TryFrom<&Value> for BlockHeaders
impl Eq for BlockHeaders
impl StructuralEq for BlockHeaders
impl StructuralPartialEq for BlockHeaders
Auto Trait Implementations
impl RefUnwindSafe for BlockHeaders
impl Send for BlockHeaders
impl Sync for BlockHeaders
impl Unpin for BlockHeaders
impl UnwindSafe for BlockHeaders
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request