pub struct DistributionQuerier { /* private fields */ }Implementations§
Source§impl DistributionQuerier
 
impl DistributionQuerier
pub fn new<T>(withdraw_addresses: T) -> Self
pub fn set_withdraw_address( &mut self, delegator_address: impl Into<String>, withdraw_address: impl Into<String>, )
Sourcepub fn set_withdraw_addresses(
    &mut self,
    withdraw_addresses: impl IntoIterator<Item = (impl Into<String>, impl Into<String>)>,
)
 
pub fn set_withdraw_addresses( &mut self, withdraw_addresses: impl IntoIterator<Item = (impl Into<String>, impl Into<String>)>, )
Sets multiple withdraw addresses.
This allows passing multiple tuples of (delegator_address, withdraw_address).
It does not overwrite existing entries.
pub fn clear_withdraw_addresses(&mut self)
Sourcepub fn set_rewards(
    &mut self,
    validator: impl Into<String>,
    delegator: impl Into<String>,
    rewards: Vec<DecCoin>,
)
 
pub fn set_rewards( &mut self, validator: impl Into<String>, delegator: impl Into<String>, rewards: Vec<DecCoin>, )
Sets accumulated rewards for a given validator and delegator pair.
Sourcepub fn set_validators(
    &mut self,
    delegator: impl Into<String>,
    validators: impl IntoIterator<Item = impl Into<String>>,
)
 
pub fn set_validators( &mut self, delegator: impl Into<String>, validators: impl IntoIterator<Item = impl Into<String>>, )
Sets the validators a given delegator has bonded to.
pub fn query(&self, request: &DistributionQuery) -> QuerierResult
Trait Implementations§
Source§impl Clone for DistributionQuerier
 
impl Clone for DistributionQuerier
Source§fn clone(&self) -> DistributionQuerier
 
fn clone(&self) -> DistributionQuerier
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 Default for DistributionQuerier
 
impl Default for DistributionQuerier
Source§fn default() -> DistributionQuerier
 
fn default() -> DistributionQuerier
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DistributionQuerier
impl RefUnwindSafe for DistributionQuerier
impl Send for DistributionQuerier
impl Sync for DistributionQuerier
impl Unpin for DistributionQuerier
impl UnwindSafe for DistributionQuerier
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<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