pub struct RewardInfo {
pub reward_type: RewardType,
pub lamports: i64,
pub post_balance: u64,
pub commission: Option<u8>,
}
Fields§
§reward_type: RewardType
§lamports: i64
Reward amount
post_balance: u64
Account balance in lamports after lamports
was applied
commission: Option<u8>
Vote account commission when the reward was credited, only present for voting and staking rewards
Trait Implementations§
Source§impl Clone for RewardInfo
impl Clone for RewardInfo
Source§fn clone(&self) -> RewardInfo
fn clone(&self) -> RewardInfo
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 RewardInfo
impl Debug for RewardInfo
Source§impl<'de> Deserialize<'de> for RewardInfo
impl<'de> Deserialize<'de> for RewardInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RewardInfo
impl PartialEq for RewardInfo
Source§impl Serialize for RewardInfo
impl Serialize for RewardInfo
impl Copy for RewardInfo
impl Eq for RewardInfo
impl StructuralPartialEq for RewardInfo
Auto Trait Implementations§
impl Freeze for RewardInfo
impl RefUnwindSafe for RewardInfo
impl Send for RewardInfo
impl Sync for RewardInfo
impl Unpin for RewardInfo
impl UnwindSafe for RewardInfo
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more