Struct solana_stake_program::stake_state::PointValue
source · pub struct PointValue {
pub rewards: u64,
pub points: u128,
}
Expand description
captures a rewards round as lamports to be awarded and the total points over which those lamports are to be distributed
Fields§
§rewards: u64
§points: u128
Trait Implementations§
source§impl Clone for PointValue
impl Clone for PointValue
source§fn clone(&self) -> PointValue
fn clone(&self) -> PointValue
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 PointValue
impl Debug for PointValue
source§impl PartialEq<PointValue> for PointValue
impl PartialEq<PointValue> for PointValue
source§fn eq(&self, other: &PointValue) -> bool
fn eq(&self, other: &PointValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PointValue
impl StructuralEq for PointValue
impl StructuralPartialEq for PointValue
Auto Trait Implementations§
impl RefUnwindSafe for PointValue
impl Send for PointValue
impl Sync for PointValue
impl Unpin for PointValue
impl UnwindSafe for PointValue
Blanket Implementations§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.