pub struct NnsGovernanceNeuronSubsetMetrics {Show 14 fields
pub count: Option<u64>,
pub total_staked_e8s: Option<u64>,
pub total_maturity_e8s_equivalent: Option<u64>,
pub total_staked_maturity_e8s_equivalent: Option<u64>,
pub total_voting_power: Option<u64>,
pub total_deciding_voting_power: Option<u64>,
pub total_potential_voting_power: Option<u64>,
pub count_buckets: Vec<NnsGovernanceMetricBucket<u64>>,
pub staked_e8s_buckets: Vec<NnsGovernanceMetricBucket<u64>>,
pub maturity_e8s_equivalent_buckets: Vec<NnsGovernanceMetricBucket<u64>>,
pub staked_maturity_e8s_equivalent_buckets: Vec<NnsGovernanceMetricBucket<u64>>,
pub voting_power_buckets: Vec<NnsGovernanceMetricBucket<u64>>,
pub deciding_voting_power_buckets: Vec<NnsGovernanceMetricBucket<u64>>,
pub potential_voting_power_buckets: Vec<NnsGovernanceMetricBucket<u64>>,
}Expand description
NnsGovernanceNeuronSubsetMetrics
Native cached Governance metrics for one neuron subset.
Fields§
§count: Option<u64>Number of neurons in the subset.
total_staked_e8s: Option<u64>Total subset stake in e8s.
total_maturity_e8s_equivalent: Option<u64>Total subset maturity in e8s-equivalent.
total_staked_maturity_e8s_equivalent: Option<u64>Total subset staked maturity in e8s-equivalent.
total_voting_power: Option<u64>Deprecated raw total voting power.
total_deciding_voting_power: Option<u64>Total deciding voting power.
total_potential_voting_power: Option<u64>Total potential voting power.
count_buckets: Vec<NnsGovernanceMetricBucket<u64>>Neuron-count buckets.
staked_e8s_buckets: Vec<NnsGovernanceMetricBucket<u64>>Stake buckets in e8s.
maturity_e8s_equivalent_buckets: Vec<NnsGovernanceMetricBucket<u64>>Maturity buckets in e8s-equivalent.
staked_maturity_e8s_equivalent_buckets: Vec<NnsGovernanceMetricBucket<u64>>Staked-maturity buckets in e8s-equivalent.
voting_power_buckets: Vec<NnsGovernanceMetricBucket<u64>>Deprecated voting-power buckets.
deciding_voting_power_buckets: Vec<NnsGovernanceMetricBucket<u64>>Deciding-voting-power buckets.
potential_voting_power_buckets: Vec<NnsGovernanceMetricBucket<u64>>Potential-voting-power buckets.
Trait Implementations§
Source§impl Clone for NnsGovernanceNeuronSubsetMetrics
impl Clone for NnsGovernanceNeuronSubsetMetrics
Source§fn clone(&self) -> NnsGovernanceNeuronSubsetMetrics
fn clone(&self) -> NnsGovernanceNeuronSubsetMetrics
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<'de> Deserialize<'de> for NnsGovernanceNeuronSubsetMetrics
impl<'de> Deserialize<'de> for NnsGovernanceNeuronSubsetMetrics
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 NnsGovernanceNeuronSubsetMetrics
impl StructuralPartialEq for NnsGovernanceNeuronSubsetMetrics
Auto Trait Implementations§
impl Freeze for NnsGovernanceNeuronSubsetMetrics
impl RefUnwindSafe for NnsGovernanceNeuronSubsetMetrics
impl Send for NnsGovernanceNeuronSubsetMetrics
impl Sync for NnsGovernanceNeuronSubsetMetrics
impl Unpin for NnsGovernanceNeuronSubsetMetrics
impl UnsafeUnpin for NnsGovernanceNeuronSubsetMetrics
impl UnwindSafe for NnsGovernanceNeuronSubsetMetrics
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