pub struct StakingPoolInfo {
pub validator_id: AccountId,
pub fee: Option<RewardFeeFraction>,
pub delegators: Option<u64>,
pub stake: NearToken,
}Expand description
Aggregate information about the staking pool.
The type is related to the StakingPool smart contract.
Fields§
§validator_id: AccountIdThe validator that is running the pool.
fee: Option<RewardFeeFraction>The fee that is taken by the pool contract.
delegators: Option<u64>The number of delegators on the pool.
stake: NearTokenThe total staked balance on the pool (by all delegators).
Trait Implementations§
Source§impl Clone for StakingPoolInfo
impl Clone for StakingPoolInfo
Source§fn clone(&self) -> StakingPoolInfo
fn clone(&self) -> StakingPoolInfo
Returns a duplicate 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 StakingPoolInfo
impl Debug for StakingPoolInfo
Source§impl<'de> Deserialize<'de> for StakingPoolInfo
impl<'de> Deserialize<'de> for StakingPoolInfo
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 StakingPoolInfo
impl PartialEq for StakingPoolInfo
Source§impl Serialize for StakingPoolInfo
impl Serialize for StakingPoolInfo
impl Eq for StakingPoolInfo
impl StructuralPartialEq for StakingPoolInfo
Auto Trait Implementations§
impl Freeze for StakingPoolInfo
impl RefUnwindSafe for StakingPoolInfo
impl Send for StakingPoolInfo
impl Sync for StakingPoolInfo
impl Unpin for StakingPoolInfo
impl UnwindSafe for StakingPoolInfo
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