pub struct StakingPool {
pub pool_id: String,
pub operator: Address,
pub pool_type: PoolType,
pub total_staked: u128,
pub staker_count: u64,
pub commission_rate: u32,
pub status: PoolStatus,
pub metadata: HashMap<String, String>,
}Expand description
Staking pool for validators and providers
Fields§
§pool_id: StringPool ID
operator: AddressPool operator
pool_type: PoolTypePool type
total_staked: u128Total staked amount (in smallest unit)
staker_count: u64Number of stakers
commission_rate: u32Pool commission rate (basis points)
status: PoolStatusPool status
metadata: HashMap<String, String>Pool metadata
Implementations§
Trait Implementations§
Source§impl Clone for StakingPool
impl Clone for StakingPool
Source§fn clone(&self) -> StakingPool
fn clone(&self) -> StakingPool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StakingPool
impl Debug for StakingPool
Source§impl<'de> Deserialize<'de> for StakingPool
impl<'de> Deserialize<'de> for StakingPool
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
impl Eq for StakingPool
Source§impl PartialEq for StakingPool
impl PartialEq for StakingPool
Source§fn eq(&self, other: &StakingPool) -> bool
fn eq(&self, other: &StakingPool) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StakingPool
impl Serialize for StakingPool
impl StructuralPartialEq for StakingPool
Auto Trait Implementations§
impl Freeze for StakingPool
impl RefUnwindSafe for StakingPool
impl Send for StakingPool
impl Sync for StakingPool
impl Unpin for StakingPool
impl UnsafeUnpin for StakingPool
impl UnwindSafe for StakingPool
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