pub struct BlockchainRewards { /* private fields */ }
Implementations§
Source§impl BlockchainRewards
impl BlockchainRewards
pub fn new( height: u32, current_reward: u64, total_waves_amount: u64, min_increment: u64, term: u32, next_check: u32, voting_interval_start: u32, voting_interval: u32, voting_threshold: u32, votes: Votes, ) -> Self
pub fn height(&self) -> u32
pub fn current_reward(&self) -> u64
pub fn total_waves_amount(&self) -> u64
pub fn min_increment(&self) -> u64
pub fn term(&self) -> u32
pub fn next_check(&self) -> u32
pub fn voting_interval_start(&self) -> u32
pub fn voting_interval(&self) -> u32
pub fn voting_threshold(&self) -> u32
pub fn votes(&self) -> Votes
Trait Implementations§
Source§impl Clone for BlockchainRewards
impl Clone for BlockchainRewards
Source§fn clone(&self) -> BlockchainRewards
fn clone(&self) -> BlockchainRewards
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 BlockchainRewards
impl Debug for BlockchainRewards
Source§impl PartialEq for BlockchainRewards
impl PartialEq for BlockchainRewards
Source§impl TryFrom<&Value> for BlockchainRewards
impl TryFrom<&Value> for BlockchainRewards
impl Eq for BlockchainRewards
impl StructuralPartialEq for BlockchainRewards
Auto Trait Implementations§
impl Freeze for BlockchainRewards
impl RefUnwindSafe for BlockchainRewards
impl Send for BlockchainRewards
impl Sync for BlockchainRewards
impl Unpin for BlockchainRewards
impl UnwindSafe for BlockchainRewards
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