pub struct KeyedRewardsAndNumPartitions {
pub keyed_rewards: Vec<(Pubkey, RewardInfo)>,
pub num_partitions: Option<u64>,
}Fields§
§keyed_rewards: Vec<(Pubkey, RewardInfo)>§num_partitions: Option<u64>Implementations§
Source§impl KeyedRewardsAndNumPartitions
impl KeyedRewardsAndNumPartitions
pub fn should_record(&self) -> bool
Trait Implementations§
Source§impl Debug for KeyedRewardsAndNumPartitions
impl Debug for KeyedRewardsAndNumPartitions
Source§impl PartialEq for KeyedRewardsAndNumPartitions
impl PartialEq for KeyedRewardsAndNumPartitions
Source§fn eq(&self, other: &KeyedRewardsAndNumPartitions) -> bool
fn eq(&self, other: &KeyedRewardsAndNumPartitions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyedRewardsAndNumPartitions
Auto Trait Implementations§
impl Freeze for KeyedRewardsAndNumPartitions
impl RefUnwindSafe for KeyedRewardsAndNumPartitions
impl Send for KeyedRewardsAndNumPartitions
impl Sync for KeyedRewardsAndNumPartitions
impl Unpin for KeyedRewardsAndNumPartitions
impl UnwindSafe for KeyedRewardsAndNumPartitions
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> 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> 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