Struct waves_rust::model::rs::BlockchainRewards
source · [−]pub struct BlockchainRewards { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for BlockchainRewards
impl Clone for BlockchainRewards
sourcefn clone(&self) -> BlockchainRewards
fn clone(&self) -> BlockchainRewards
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 BlockchainRewards
impl Debug for BlockchainRewards
sourceimpl PartialEq<BlockchainRewards> for BlockchainRewards
impl PartialEq<BlockchainRewards> for BlockchainRewards
sourcefn eq(&self, other: &BlockchainRewards) -> bool
fn eq(&self, other: &BlockchainRewards) -> bool
sourceimpl TryFrom<&Value> for BlockchainRewards
impl TryFrom<&Value> for BlockchainRewards
impl Eq for BlockchainRewards
impl StructuralEq for BlockchainRewards
impl StructuralPartialEq for BlockchainRewards
Auto Trait Implementations
impl RefUnwindSafe for BlockchainRewards
impl Send for BlockchainRewards
impl Sync for BlockchainRewards
impl Unpin for BlockchainRewards
impl UnwindSafe for BlockchainRewards
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